From 997875c1d6824f0441c03316db33cdf2f467aa91 Mon Sep 17 00:00:00 2001 From: "N. Brouard" Date: Fri, 24 May 2002 13:00:54 +0000 Subject: [PATCH] Change of gif to png. Clarify some of the outputs. Add a new graph: pij*YEARM/stepm in order to get pseudo-incidence per year. --- src/imach.c | 141 +++++++++++++++++++++++++++++----------------------- 1 file changed, 80 insertions(+), 61 deletions(-) diff --git a/src/imach.c b/src/imach.c index e00b7e6..f542bab 100644 --- a/src/imach.c +++ b/src/imach.c @@ -1665,7 +1665,7 @@ void evsij(char fileres[], double ***eij, double x[], int nlstate, int stepm, in for(j=1;j<=nlstate*2;j++) varhe[i][j][(int)age] =0.; - printf("%d||",(int)age);fflush(stdout); + printf("%d|",(int)age);fflush(stdout); for(h=0;h<=nhstepm-1;h++){ for(k=0;k<=nhstepm-1;k++){ matprod2(dnewm,trgradg[h],1,nlstate*2,1,npar,1,npar,matcov); @@ -1724,7 +1724,7 @@ void varevsij(char fileres[], double ***vareij, double **matcov, double x[], dou double age,agelim, hf; int theta; - fprintf(ficresvij,"# Covariances of life expectancies\n"); + fprintf(ficresvij,"# Variance and covariance of health expectancies e.j \n# (weighted average of eij where weights are the stable prevalence in health states i\n"); fprintf(ficresvij,"# Age"); for(i=1; i<=nlstate;i++) for(j=1; j<=nlstate;j++) @@ -1859,7 +1859,7 @@ void varprevlim(char fileres[], double **varpl, double **matcov, double x[], dou double age,agelim; int theta; - fprintf(ficresvpl,"# Standard deviation of prevalences limit\n"); + fprintf(ficresvpl,"# Standard deviation of prevalence's limit\n"); fprintf(ficresvpl,"# Age"); for(i=1; i<=nlstate;i++) fprintf(ficresvpl," %1d-%1d",i,i); @@ -2061,10 +2061,12 @@ fprintf(ficresprob,"#One-step probabilities and standard deviation in parenthese /******************* Printing html file ***********/ void printinghtml(char fileres[], char title[], char datafile[], int firstpass, \ - int lastpass, int stepm, int weightopt, char model[],\ - int imx,int jmin, int jmax, double jmeanint,char optionfile[], \ - char optionfilehtm[],char rfileres[], char optionfilegnuplot[],\ - char version[], int popforecast, int estepm ){ + int lastpass, int stepm, int weightopt, char model[],\ + int imx,int jmin, int jmax, double jmeanint,char optionfile[], \ + char optionfilehtm[],char rfileres[], char optionfilegnuplot[],\ + char version[], int popforecast, int estepm ,/* \ */ + double jprev1, double mprev1,double anprev1, \ + double jprev2, double mprev2,double anprev2){ int jj1, k1, i1, cpt; FILE *fichtm; /*char optionfilehtm[FILENAMELENGTH];*/ @@ -2075,26 +2077,30 @@ void printinghtml(char fileres[], char title[], char datafile[], int firstpass, printf("Problem with %s \n",optionfilehtm), exit(0); } - fprintf(fichtm," %s
\n + fprintf(fichtm," %s
\n Title=%s
Datafile=%s Firstpass=%d Lastpass=%d Stepm=%d Weight=%d Model=%s
\n \n Total number of observations=%d
\n Interval (in months) between two waves: Min=%d Max=%d Mean=%.2lf
\n -
-