Health expectancies are computed from the transistions observed between \r
waves and are computed for each degree of severity of disability (number\r
of life states). More degrees you consider, more time is necessary to\r
- reach the Maximum Likelihood of the parameters involved in the model.\r
+ reach the Maximum Likelihood of the parameters involved in the model. \r
The simplest model is the multinomial logistic model where pij is\r
the probabibility to be observed in state j at the second wave conditional\r
to be observed in state i at the first wave. Therefore the model is:\r
/* int j, k=0,jk, ju, jl,jmin=1e+5, jmax=-1;\r
double sum=0., jmean=0.;*/\r
\r
-int j, k=0,jk, ju, jl;\r
- double sum=0.;\r
-jmin=1e+5;\r
- jmax=-1;\r
-jmean=0.;\r
+ int j, k=0,jk, ju, jl;\r
+ double sum=0.;\r
+ jmin=1e+5;\r
+ jmax=-1;\r
+ jmean=0.;\r
for(i=1; i<=imx; i++){\r
mi=0;\r
m=firstpass;\r
if(j==0) j=1; /* Survives at least one month after exam */\r
k=k+1;\r
if (j >= jmax) jmax=j;\r
- else if (j <= jmin)jmin=j;\r
+ if (j <= jmin) jmin=j;\r
sum=sum+j;\r
if (j<0) printf("j=%d num=%d ",j,i); \r
}\r
chdir(pathcd);\r
#endif \r
/*system("wgnuplot graph.plt");*/\r
- system("../gp37mgw/wgnuplot graph.plt");\r
+ /*system("../gp37mgw/wgnuplot graph.plt");*/\r
+ /*system("cd ../gp37mgw");*/\r
+ system("..\\gp37mgw\\wgnuplot graph.plt");\r
\r
#ifdef windows\r
while (z[0] != 'q') {\r