version 1.9, 2001/05/02 18:44:18
|
version 1.10, 2001/05/09 14:25:42
|
Line 1304 jmean=0.;
|
Line 1304 jmean=0.;
|
dh[mi][i]=1;
|
dh[mi][i]=1;
|
else{
|
else{
|
if (s[mw[mi+1][i]][i] > nlstate) {
|
if (s[mw[mi+1][i]][i] > nlstate) {
|
|
if (agedc[i] < 2*AGESUP) {
|
j= rint(agedc[i]*12-agev[mw[mi][i]][i]*12);
|
j= rint(agedc[i]*12-agev[mw[mi][i]][i]*12);
|
/*if ((j<0) || (j>28)) printf("j=%d num=%d ",j,i);*/
|
|
if(j==0) j=1; /* Survives at least one month after exam */
|
if(j==0) j=1; /* Survives at least one month after exam */
|
k=k+1;
|
k=k+1;
|
if (j >= jmax) jmax=j;
|
if (j >= jmax) jmax=j;
|
else if (j <= jmin)jmin=j;
|
else if (j <= jmin)jmin=j;
|
sum=sum+j;
|
sum=sum+j;
|
|
if (j<0) printf("j=%d num=%d ",j,i);
|
|
}
|
}
|
}
|
else{
|
else{
|
j= rint( (agev[mw[mi+1][i]][i]*12 - agev[mw[mi][i]][i]*12));
|
j= rint( (agev[mw[mi+1][i]][i]*12 - agev[mw[mi][i]][i]*12));
|
/*if ((j<0) || (j>28)) printf("j=%d num=%d ",j,i);*/
|
|
k=k+1;
|
k=k+1;
|
if (j >= jmax) jmax=j;
|
if (j >= jmax) jmax=j;
|
else if (j <= jmin)jmin=j;
|
else if (j <= jmin)jmin=j;
|
Line 1676 int main()
|
Line 1677 int main()
|
double ***eij, ***vareij;
|
double ***eij, ***vareij;
|
double **varpl; /* Variances of prevalence limits by age */
|
double **varpl; /* Variances of prevalence limits by age */
|
double *epj, vepp;
|
double *epj, vepp;
|
char version[80]="Imach version 62c, May 1999, INED-EUROREVES ";
|
char version[80]="Imach version 64b, May 2001, INED-EUROREVES ";
|
char *alph[]={"a","a","b","c","d","e"}, str[4];
|
char *alph[]={"a","a","b","c","d","e"}, str[4];
|
|
|
char z[1]="c", occ;
|
char z[1]="c", occ;
|
Line 2680 strcpy(fileresvpl,"vpl");
|
Line 2681 strcpy(fileresvpl,"vpl");
|
if (z[0] == 'c') system("./imach");
|
if (z[0] == 'c') system("./imach");
|
else if (z[0] == 'e') {
|
else if (z[0] == 'e') {
|
chdir(path);
|
chdir(path);
|
system("index.htm");
|
system(optionfilehtm);
|
}
|
}
|
else if (z[0] == 'q') exit(0);
|
else if (z[0] == 'q') exit(0);
|
}
|
}
|