/* nhstepm age range expressed in number of stepm */\r
nstepm=(int) rint((agelim-age)*YEARM/stepm); \r
/* Typically if 20 years nstepm = 20*12/6=40 stepm */ \r
- if (stepm >= YEARM) hstepm=1;\r
+ /* if (stepm >= YEARM) hstepm=1;*/\r
nhstepm = nstepm/hstepm;/* Expressed in hstepm, typically nhstepm=40/4=10 */\r
p3mat=ma3x(1,nlstate+ndeath,1, nlstate+ndeath, 0,nhstepm);\r
/* Computed by stepm unit matrices, product of hstepm matrices, stored\r
printf("Problem with %s \n",optionfilehtm), exit(0);\r
}\r
\r
- fprintf(fichtm,"<body><ul> <font size=\"6\">Imach, Version 0.71c </font> <hr size=\"2\" color=\"#EC5E5E\"> \r
+ fprintf(fichtm,"<body><ul> <font size=\"6\">Imach, Version 0.71e </font> <hr size=\"2\" color=\"#EC5E5E\"> \r
Title=%s <br>Datafile=%s Firstpass=%d Lastpass=%d Stepm=%d Weight=%d Model=%s<br>\r
\r
Total number of observations=%d <br>\r
double dateprev1, dateprev2,jproj1,mproj1,anproj1,jproj2,mproj2,anproj2;\r
\r
\r
- char version[80]="Imach version 0.71c, March 2002, INED-EUROREVES ";\r
+ char version[80]="Imach version 0.71e, March 2002, INED-EUROREVES ";\r
char *alph[]={"a","a","b","c","d","e"}, str[4];\r
\r
\r
for (i=1;i<=nlstate;i++) fprintf(ficrest,"e.%d (std) ",i);\r
fprintf(ficrest,"\n");\r
\r
- hf=1;\r
- if (stepm >= YEARM) hf=stepm/YEARM;\r
epj=vector(1,nlstate+1);\r
for(age=bage; age <=fage ;age++){\r
prevalim(prlim, nlstate, p, age, oldm, savm,ftolpl,k);\r
prlim[i][i]=probs[(int)age][i][k];\r
}\r
\r
- fprintf(ficrest," %.0f",age);\r
+ fprintf(ficrest," %4.0f",age);\r
for(j=1, epj[nlstate+1]=0.;j <=nlstate;j++){\r
for(i=1, epj[j]=0.;i <=nlstate;i++) {\r
- epj[j] += prlim[i][i]*hf*eij[i][j][(int)age];\r
+ epj[j] += prlim[i][i]*eij[i][j][(int)age];\r
}\r
epj[nlstate+1] +=epj[j];\r
}\r
for(i=1, vepp=0.;i <=nlstate;i++)\r
for(j=1;j <=nlstate;j++)\r
vepp += vareij[i][j][(int)age];\r
- fprintf(ficrest," %.2f (%.2f)", epj[nlstate+1],hf*sqrt(vepp));\r
+ fprintf(ficrest," %7.2f (%7.2f)", epj[nlstate+1],sqrt(vepp));\r
for(j=1;j <=nlstate;j++){\r
- fprintf(ficrest," %.2f (%.2f)", epj[j],hf*sqrt(vareij[j][j][(int)age]));\r
+ fprintf(ficrest," %7.2f (%7.2f)", epj[j],sqrt(vareij[j][j][(int)age]));\r
}\r
fprintf(ficrest,"\n");\r
}\r