--- imach/src/imach.c 2006/02/24 14:20:24 1.113 +++ imach/src/imach.c 2006/03/06 10:29:27 1.116 @@ -1,6 +1,17 @@ -/* $Id: imach.c,v 1.113 2006/02/24 14:20:24 brouard Exp $ +/* $Id: imach.c,v 1.116 2006/03/06 10:29:27 brouard Exp $ $State: Exp $ $Log: imach.c,v $ + Revision 1.116 2006/03/06 10:29:27 brouard + (Module): Variance-covariance wrong links and + varian-covariance of ej. is needed (Saito). + + Revision 1.115 2006/02/27 12:17:45 brouard + (Module): One freematrix added in mlikeli! 0.98c + + Revision 1.114 2006/02/26 12:57:58 brouard + (Module): Some improvements in processing parameter + filename with strsep. + Revision 1.113 2006/02/24 14:20:24 brouard (Module): Memory leaks checks with valgrind and: datafile was not closed, some imatrix were not freed and on matrix @@ -297,11 +308,11 @@ extern int errno; #define ODIRSEPARATOR '/' #endif -/* $Id: imach.c,v 1.113 2006/02/24 14:20:24 brouard Exp $ */ +/* $Id: imach.c,v 1.116 2006/03/06 10:29:27 brouard Exp $ */ /* $State: Exp $ */ -char version[]="Imach version 0.98b, January 2006, INED-EUROREVES "; -char fullversion[]="$Revision: 1.113 $ $Date: 2006/02/24 14:20:24 $"; +char version[]="Imach version 0.98c, February 2006, INED-EUROREVES "; +char fullversion[]="$Revision: 1.116 $ $Date: 2006/03/06 10:29:27 $"; int erreur, nberr=0, nbwarn=0; /* Error number, number of errors number of warnings */ int nvar; int cptcovn=0, cptcovage=0, cptcoveff=0,cptcov; @@ -1664,6 +1675,7 @@ void mlikeli(FILE *ficres,double p[], in powell(p,xi,npar,ftol,&iter,&fret,func); + free_matrix(xi,1,npar,1,npar); fclose(ficrespow); printf("\n#Number of iterations = %d, -2 Log likelihood = %.12f\n",iter,func(p)); fprintf(ficlog,"\n#Number of iterations = %d, -2 Log likelihood = %.12f \n",iter,func(p)); @@ -3272,9 +3284,18 @@ void printinghtml(char fileres[], char t - Stable prevalence in each health state: %s
\n", subdirf2(fileres,"pl"),subdirf2(fileres,"pl")); fprintf(fichtm,"\ - - Life expectancies by age and initial health status (estepm=%2d months): \ + - Life expectancies by age and initial health status (estepm=%2d months) WRONG LINK (to be made): \ + %s
\n", + estepm,subdirf2(fileres,"le"),subdirf2(fileres,"le")); + fprintf(fichtm,"\ + - Health expectancies by age and initial health status with standard errors (estepm=%2d months): \ %s
\n", estepm,subdirf2(fileres,"e"),subdirf2(fileres,"e")); + fprintf(fichtm,"\ + - Variances and covariances of health expectancies by age and initial health status (estepm=%2d months) TO BE MADE: \ + %s
\n", + estepm,subdirf2(fileres,"vch"),subdirf2(fileres,"vch")); + fprintf(fichtm," \n