From: N. Brouard Date: Thu, 19 Jan 2006 13:24:36 +0000 (+0000) Subject: Some cleaning and links added in html output X-Git-Tag: imach-099s7~544 X-Git-Url: https://henry.ined.fr/git/?a=commitdiff_plain;h=05830af7e48222fc8617f52bac567c3dd3b7fe55;p=.git Some cleaning and links added in html output --- diff --git a/src/imach.c b/src/imach.c index cc596d4..74a5f6f 100644 --- a/src/imach.c +++ b/src/imach.c @@ -1,6 +1,9 @@ /* $Id$ $State$ $Log$ + Revision 1.105 2006/01/05 20:23:19 lievre + *** empty log message *** + Revision 1.104 2005/09/30 16:11:43 lievre (Module): sump fixed, loop imx fixed, and simplifications. (Module): If the status is missing at the last wave but we know @@ -218,6 +221,7 @@ #include #include #include +#include #include /* #include */ @@ -259,7 +263,7 @@ /* $Id$ */ /* $State$ */ -char version[]="Imach version 0.98, September 2005, INED-EUROREVES "; +char version[]="Imach version 0.98a, January 2006, INED-EUROREVES "; char fullversion[]="$Revision$ $Date$"; int erreur, nberr=0, nbwarn=0; /* Error number, number of errors number of warnings */ int nvar; @@ -2553,7 +2557,7 @@ void varevsij(char optionfilefiname[], double ***vareij, double **matcov, double } fprintf(ficresprobmorprev,"\n"); fprintf(ficgp,"\n# Routine varevsij"); - fprintf(fichtm, "#Local time at start: %s", strstart); + /* fprintf(fichtm, "#Local time at start: %s", strstart);*/ fprintf(fichtm,"\n
  • Computing probabilities of dying over estepm months as a weighted average (i.e global mortality independent of initial healh state)

  • \n"); fprintf(fichtm,"\n
    %s
    \n",digitp); /* } */ @@ -3196,7 +3200,10 @@ void printinghtml(char fileres[], char title[], char datafile[], int firstpass, double jprev2, double mprev2,double anprev2){ int jj1, k1, i1, cpt; - fprintf(fichtm,"
    • Result files (first order: no variance)

      \n \ + fprintf(fichtm,""); + fprintf(fichtm,"
      • Result files (first order: no variance)

        \n \ - Observed prevalence in each state (during the period defined between %.lf/%.lf/%.lf and %.lf/%.lf/%.lf): %s
        \n ", jprev1, mprev1,anprev1,jprev2, mprev2,anprev2,subdirf2(fileres,"p"),subdirf2(fileres,"p")); fprintf(fichtm,"\ @@ -3247,7 +3254,7 @@ fprintf(fichtm," \n
        • Graphs
        • "); fprintf(fichtm,"\ -\n

        • Result files (second order: variances)

          \n\ +\n
        • Result files (second order: variances)

          \n\ - Parameter file with estimated parameters and covariance matrix: %s
          \n", rfileres,rfileres); fprintf(fichtm," - Variance of one-step probabilities: %s
          \n", @@ -4006,7 +4013,7 @@ void printinghtmlmort(char fileres[], char title[], char datafile[], int firstpa fprintf(fichtm,"
          • Life table

            \n
            "); - fprintf(fichtm,"\nAge lx qx dx Lx Tx e(x)
            "); + fprintf(fichtm,"\nAge lx qx d(x,x+1) Lx Tx e
            "); for (k=agegomp;k<(agemortsup-2);k++) fprintf(fichtm,"%d %.0lf %lf %.0lf %.0lf %.0lf %lf
            \n",k,lsurv[k],p[1]*exp(p[2]*(k-agegomp)),(p[1]*exp(p[2]*(k-agegomp)))*lsurv[k],lpop[k],tpop[k],tpop[k]/lsurv[k]); @@ -4501,12 +4508,12 @@ int main(int argc, char *argv[]) if (s[4][i]==9) s[4][i]=-1; printf("%ld %.lf %.lf %.lf %.lf/%.lf %.lf/%.lf %.lf/%.lf %d %.lf/%.lf %d %.lf/%.lf %d %.lf/%.lf %d\n",num[i],(covar[1][i]), (covar[2][i]), (weight[i]), (moisnais[i]), (annais[i]), (moisdc[i]), (andc[i]), (mint[1][i]), (anint[1][i]), (s[1][i]), (mint[2][i]), (anint[2][i]), (s[2][i]), (mint[3][i]), (anint[3][i]), (s[3][i]), (mint[4][i]), (anint[4][i]), (s[4][i]));}*/ - for (i=1; i<=imx; i++) + /* for (i=1; i<=imx; i++) */ /*if ((s[3][i]==3) || (s[4][i]==3)) weight[i]=0.08; else weight[i]=1;*/ - /* Calculation of the number of parameter from char model*/ + /* Calculation of the number of parameters from char model */ Tvar=ivector(1,15); /* stores the number n of the covariates in Vm+Vn at 1 and m at 2 */ Tprod=ivector(1,15); Tvaraff=ivector(1,15);