]> henry.ined.fr Git - .git/commitdiff
Parameters are printed with %lf instead of %f (more numbers after the comma).
authorAgnès Lièvre <agnes.lievre@education.gouv.fr>
Wed, 22 Mar 2006 17:13:53 +0000 (17:13 +0000)
committerAgnès Lièvre <agnes.lievre@education.gouv.fr>
Wed, 22 Mar 2006 17:13:53 +0000 (17:13 +0000)
The log-likelihood is printed in the log file

src/imach.c

index 47ee83f722c1563112ab2ae2e8b05c8d185fc847..9923c3dc8b61f8aa9f1220c83f566d725309ee27 100644 (file)
@@ -1,6 +1,17 @@
 /* $Id$
   $State$
   $Log$
+  Revision 1.123  2006/03/20 10:52:43  brouard
+  * imach.c (Module): <title> changed, corresponds to .htm file
+  name. <head> headers where missing.
+
+  * imach.c (Module): Weights can have a decimal point as for
+  English (a comma might work with a correct LC_NUMERIC environment,
+  otherwise the weight is truncated).
+  Modification of warning when the covariates values are not 0 or
+  1.
+  Version 0.98g
+
   Revision 1.122  2006/03/20 09:45:41  brouard
   (Module): Weights can have a decimal point as for
   English (a comma might work with a correct LC_NUMERIC environment,
@@ -990,9 +1001,8 @@ void powell(double p[], double **xi, int n, double ftol, int *iter, double *fret
     last_time=curr_time;
     (void) gettimeofday(&curr_time,&tzp);
     printf("\nPowell iter=%d -2*LL=%.12f %ld sec. %ld sec.",*iter,*fret, curr_time.tv_sec-last_time.tv_sec, curr_time.tv_sec-start_time.tv_sec);fflush(stdout);
-    /*    fprintf(ficlog,"\nPowell iter=%d -2*LL=%.12f %ld sec. %ld sec.",*iter,*fret, curr_time.tv_sec-last_time.tv_sec, curr_time.tv_sec-start_time.tv_sec);
-    fprintf(ficrespow,"%d %.12f %ld",*iter,*fret,curr_time.tv_sec-start_time.tv_sec);
-    */
+    fprintf(ficlog,"\nPowell iter=%d -2*LL=%.12f %ld sec. %ld sec.",*iter,*fret, curr_time.tv_sec-last_time.tv_sec, curr_time.tv_sec-start_time.tv_sec); fflush(ficlog);
+/*     fprintf(ficrespow,"%d %.12f %ld",*iter,*fret,curr_time.tv_sec-start_time.tv_sec); */
    for (i=1;i<=n;i++) {
       printf(" %d %.12f",i, p[i]);
       fprintf(ficlog," %d %.12lf",i, p[i]);
@@ -2083,6 +2093,7 @@ void  freqsummary(char fileres[], int iagemin, int iagemax, int **s, double **ag
       for(i=iagemin; i <= iagemax+3; i++){
        if(i==iagemax+3){
          fprintf(ficlog,"Total");
+         fprintf(fichtm,"<br>Total<br>");
        }else{
          if(first==1){
            first=0;
@@ -5346,9 +5357,9 @@ Interval (in months) between two waves: Min=%d Max=%d Mean=%.2lf<br>\n",\
          fprintf(ficlog,"%d%d ",i,k);
          fprintf(ficres,"%1d%1d ",i,k);
          for(j=1; j <=ncovmodel; j++){
-           printf("%f ",p[jk]);
-           fprintf(ficlog,"%f ",p[jk]);
-           fprintf(ficres,"%f ",p[jk]);
+           printf("%lf ",p[jk]);
+           fprintf(ficlog,"%lf ",p[jk]);
+           fprintf(ficres,"%lf ",p[jk]);
            jk++; 
          }
          printf("\n");