version 1.43, 2002/05/24 13:00:54
|
version 1.45, 2002/05/24 16:34:18
|
Line 2059 fprintf(ficresprob,"#One-step probabilit
|
Line 2059 fprintf(ficresprob,"#One-step probabilit
|
|
|
}
|
}
|
|
|
|
|
/******************* Printing html file ***********/
|
/******************* Printing html file ***********/
|
void printinghtml(char fileres[], char title[], char datafile[], int firstpass, \
|
void printinghtml(char fileres[], char title[], char datafile[], int firstpass, \
|
int lastpass, int stepm, int weightopt, char model[],\
|
int lastpass, int stepm, int weightopt, char model[],\
|
int imx,int jmin, int jmax, double jmeanint,char optionfile[], \
|
int imx,int jmin, int jmax, double jmeanint,char optionfile[], \
|
char optionfilehtm[],char rfileres[], char optionfilegnuplot[],\
|
char optionfilehtm[],char rfileres[], char optionfilegnuplot[],\
|
char version[], int popforecast, int estepm ,/* \ */
|
char version[], int popforecast, int estepm ,\
|
double jprev1, double mprev1,double anprev1, \
|
double jprev1, double mprev1,double anprev1, \
|
double jprev2, double mprev2,double anprev2){
|
double jprev2, double mprev2,double anprev2){
|
int jj1, k1, i1, cpt;
|
int jj1, k1, i1, cpt;
|
Line 2116 fprintf(fichtm," <li>Graphs</li><p>");
|
Line 2117 fprintf(fichtm," <li>Graphs</li><p>");
|
jj1=0;
|
jj1=0;
|
for(k1=1; k1<=m;k1++){
|
for(k1=1; k1<=m;k1++){
|
for(i1=1; i1<=ncodemax[k1];i1++){
|
for(i1=1; i1<=ncodemax[k1];i1++){
|
jj1++;
|
jj1++;
|
if (cptcovn > 0) {
|
if (cptcovn > 0) {
|
fprintf(fichtm,"<hr size=\"2\" color=\"#EC5E5E\">************ Results for covariates");
|
fprintf(fichtm,"<hr size=\"2\" color=\"#EC5E5E\">************ Results for covariates");
|
for (cpt=1; cpt<=cptcoveff;cpt++)
|
for (cpt=1; cpt<=cptcoveff;cpt++)
|
fprintf(fichtm," V%d=%d ",Tvaraff[cpt],nbcode[Tvaraff[cpt]][codtab[jj1][cpt]]);
|
fprintf(fichtm," V%d=%d ",Tvaraff[cpt],nbcode[Tvaraff[cpt]][codtab[jj1][cpt]]);
|
fprintf(fichtm," ************\n<hr size=\"2\" color=\"#EC5E5E\">");
|
fprintf(fichtm," ************\n<hr size=\"2\" color=\"#EC5E5E\">");
|
}
|
}
|
/* Pij */
|
/* Pij */
|
fprintf(fichtm,"<br>- Pij or Conditional probabilities to be observed in state j being in state i %d (stepm) months before: pe%s%d1.png<br>
|
fprintf(fichtm,"<br>- Pij or Conditional probabilities to be observed in state j being in state i %d (stepm) months before: pe%s%d1.png<br>
|
<img src=\"pe%s%d1.png\">",strtok(optionfile, "."),jj1,stepm,strtok(optionfile, "."),jj1);
|
<img src=\"pe%s%d1.png\">",stepm,strtok(optionfile, "."),jj1,strtok(optionfile, "."),jj1);
|
/* Quasi-incidences */
|
/* Quasi-incidences */
|
fprintf(fichtm,"<br>- Pij or Conditional probabilities to be observed in state j being in state i %d (stepm) months before but expressed in per year i.e. quasi incidences if stepm is small and probabilities too: pe%s%d2.png<br>
|
fprintf(fichtm,"<br>- Pij or Conditional probabilities to be observed in state j being in state i %d (stepm) months before but expressed in per year i.e. quasi incidences if stepm is small and probabilities too: pe%s%d2.png<br>
|
<img src=\"pe%s%d2.png\">",strtok(optionfile, "."),jj1,stepm,strtok(optionfile, "."),jj1);
|
<img src=\"pe%s%d2.png\">",stepm,strtok(optionfile, "."),jj1,strtok(optionfile, "."),jj1);
|
/* Stable prevalence in each health state */
|
/* Stable prevalence in each health state */
|
for(cpt=1; cpt<nlstate;cpt++){
|
for(cpt=1; cpt<nlstate;cpt++){
|
fprintf(fichtm,"<br>- Stable prevalence in each health state : p%s%d%d.png<br>
|
fprintf(fichtm,"<br>- Stable prevalence in each health state : p%s%d%d.png<br>
|
Line 2148 health expectancies in states (1) and (2
|
Line 2149 health expectancies in states (1) and (2
|
<img src=\"e%s%d.png\">",strtok(optionfile, "."),jj1,strtok(optionfile, "."),jj1);
|
<img src=\"e%s%d.png\">",strtok(optionfile, "."),jj1,strtok(optionfile, "."),jj1);
|
fprintf(fichtm,"\n</body>");
|
fprintf(fichtm,"\n</body>");
|
}
|
}
|
}
|
}
|
fclose(fichtm);
|
fclose(fichtm);
|
}
|
}
|
|
|
Line 2674 int main(int argc, char *argv[])
|
Line 2675 int main(int argc, char *argv[])
|
double dateprev1, dateprev2,jproj1,mproj1,anproj1,jproj2,mproj2,anproj2;
|
double dateprev1, dateprev2,jproj1,mproj1,anproj1,jproj2,mproj2,anproj2;
|
|
|
|
|
char version[80]="Imach version 0.8d, May 2002, INED-EUROREVES ";
|
char version[80]="Imach version 0.8f, May 2002, INED-EUROREVES ";
|
char *alph[]={"a","a","b","c","d","e"}, str[4];
|
char *alph[]={"a","a","b","c","d","e"}, str[4];
|
|
|
|
|
Line 3285 while((c=getc(ficpar))=='#' && c!= EOF){
|
Line 3286 while((c=getc(ficpar))=='#' && c!= EOF){
|
|
|
/*--------- index.htm --------*/
|
/*--------- index.htm --------*/
|
|
|
printinghtml(fileres,title,datafile, firstpass, lastpass, stepm, weightopt,model,imx,jmin,jmax,jmean,optionfile,optionfilehtm,rfileres,optionfilegnuplot,version,popforecast,estepm,jprev1,mprev1,anprev1,jprev2,mprev2,anprev2);
|
printinghtml(fileres,title,datafile, firstpass, lastpass, stepm, weightopt,model,imx,jmin,jmax,jmean,optionfile,optionfilehtm,rfileres,optionfilegnuplot,version,popforecast,estepm,jprev1,mprev1,anprev1,jprev2,mprev2,anprev2);
|
|
|
|
|
/*--------------- Prevalence limit --------------*/
|
/*--------------- Prevalence limit --------------*/
|