Computing Health Expectancies using IMaCh

(a Maximum Likelihood Computer Program using Interpolation of Markov Chains)

INED and EUROREVES

August 2014


Authors of the program: Nicolas Brouard, senior researcher at the Institut National d'Etudes Démographiques (INED, Paris) in the "Mortality, Health and Epidemiology Research Unit"

and Agnès Lièvre (former PHD student at INED)

Contribution to the mathematics: C. R. Heathcote (Australian National University, Canberra).

Contact: Nicolas Brouard (brouard@ined.fr)

 Main publication concerning the method is Lièvre A., Brouard N. and Heathcote Ch. (2003) Estimating Health Expectancies from Cross-longitudinal surveys. Mathematical Population Studies.- 10(4), pp. 211-248. DOI 10.1080/713644739

Download and instructions for installation

Current versions August 2014

The grapher that IMaCh uses is gnuplot from http://www.gnuplot.info/. Gnuplot has evolved since version IMaCh 0.98k and therefore you need at least Gnuplot 4.6. Otherwise you need to adapt the .gp file produced in order to run with your old gnuplot. With the installer provided for OS/X and Windows, a recent gnuplot binary is provided and will be installed on the same directory that the IMaCh binary. It is better to use your own Gnuplot installation and IMaCh will test the command '''gnuplot''' but if the binary in not in your path, it will make a error but will use the binary provided by the installers. Using recent gnuplot installations, there is usually a possibility to add the gnuplot binary in your path.

On Windows (win9X, 2000, XP, Vista, Windows 7, Windows 8)

Until June 2004 the installation did consist in a zip file which had to be extracted in the directory of your choice. But with version 0.98d and above IMaCh we are using a windows installer (Inno setup).
In order to facilitate the use of IMaCh we associated the .imach extension to two features: editing and running. Thus by right clicking on a foo.imach file you can either 'edit'the file (default) with the notepad editor or 'run' it with gnuplot (you need a recent version).
But we discovered that on some computers, people are not allowed to modify the windows registry and need to have Administrator privileges.
Thus we built two windows installer: a standard setup which will install the progam (usually in \Program Files\imach and will modify the registry to associate .imach extension to notepad and imach, and a second which will not alter the registry. With this second installer you will be able to install the programs in your home directory and run it by clicking on the imach.exe icon. But you won't be able to use the facility of the right clicking.


Imach version 0.98nV of August 2014 can be downloaded as a setup.exe file http://euroreves.ined.fr/imach/imach-0.98nV-1-setup.exe. The IMaCh program and gnuplot will be installed in the directory that you want (usually in Program Files). Please check the md5sum which is e5ce179ee1e32d7514be82c0cc19e1fb imach-0.98nV-1-setup.exe
We also changed the wordpad editor to notepad which is less useful but exists on most Windows installation.
For people who are not allowed to modify the registry of their Windows installation here is a second setup imach-0.98nV-1-noreg-setup.exe.
3b477ff19fc4607a32b412e9ad977101 imach-0.98nV-1-noreg-setup.exe

Old Windows versions are accessible here.

On Mac OS/X Leopard (August 2014)

IMaCh can be easily compiled with gcc 3.3 on MacIntosh as soon as XCode (free download from Apple) is intalled on your MaCIntosh.

It take a litle more time to get version of Gnuplot 4.6.5+ for Mac OS/X and to compile it on a MaC. Currently graphs are output as png files. We will probably moved to svg because the svg format is scalable and thus figures are easier to improve and insert in other documents.

You can download a dmg file at imach0.98nV.dmg (md5sum e2256e6bd4e6f944f17b6be366ce375c). Like on Windows, two sub-directories are created bin and html . In the bin subdirectory you will find two executables imach itself and gnuplot.

You need to click on imach application and IMaCh will be launched in a Terminal window, asking you to enter a parameter file. A parameter file is a text file with an extension .imach (but you can use a .txt extension if you want. Among the parameters required, a data file name has to be entered. It can be a relative file name like ../../data/data1.txt.
If you open a new finder you can drag an IMaCh parameter file into the terminal IMaCh Window that you just created.

At the end of the run, and it order for the terminal window not to disappear, the program will prompt for a command like "e" for edit (with your browser) or "q" for quit.
The consequence for you is just that you have to use your finder or browser (there is no more difference now) and click on the .html (or .htm) file created. The filename of this html file has the same name as your parameter file, only the extension .imach is changed to .html.

On Linux

There are various versions of Linux, gnuplot is distributed on most distributions. Just verify that your version of gnuplot is more recent than version 4.6 . I haven't had time to make a rpm yet, just ask us for the CVS tree location (not completely GPL today), and compile the sources. Remarks concerning the Linux versions are similar to the Mac OS/X version.

Click here to access to the detailed documentation

This software have been partly granted by Euro-REVES, a concerted action from the European Union. In 2003-2004 it has been granted by the French Institute on Longevity. In January 2014, it has been granted by the Japan Society for the Promotion of Science (Grant-in-Aid for Scientific Research 25293121.

Our work is copyrighted as a GNU software product, i.e. program and software can be distributed freely for non commercial use, but actually some sources are not widely distributed today because they borrow some codes from the book "Numerical Recipes in C" which is copyrighted. If you are an owner of theses sources you can get our sources by asking us with a simple justification (name, email, Institute) mailto:imach-dev@listes.ined.fr

Today we are two developpers only but we already use a private CVS server. The CVS server will be freely accessible as soon as we have replaced "Numerical Recipes in C maximization routines" with equivalent routines from the new GNU scientific library.

Latest documentation can be accessed at http://euroreves.ined.fr/imach/wiki/index.php/Documentation

There is a public mailing list of IMaCh's users. You can subscribe by sending a mail to imach-users-subscribe@listes.ined.fr (and unsubscribe with imach-users-unsubscribe@listes.ined.fr

IMaCh Wiki

As discussed at the REVES meeting in Beijing, we created a Wiki for IMaCh were people having used IMaCh (or having not been able to use it because of obscure or unadequate features) can add tips and discuss various aspects of IMaCh and interface with other statistical softwares. In many aspects, our "official documentation" is not accurate enough.

Wikis are a very promising way to give information closer to your expectations. It also a very dynamic movement if you consider the first International Wikimedia Conference in Francfurt (August 2005), where most Wikis were represented and in particular Wikipedia.

Access to the IMaCh Wiki

. Please ask for a username and password.
$Id: index.htm,v 1.14 2014/08/28 13:05:37 brouard Exp $