LOGISTIC REGRESSION: Allow fractional confidence interval
authorJohn Darrington <john@darrington.wattle.id.au>
Thu, 16 Jan 2014 11:45:54 +0000 (12:45 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Thu, 16 Jan 2014 11:45:54 +0000 (12:45 +0100)
src/language/stats/logistic.c

index eb200fe37889c54c04596068614167735faa13d1..c3a152afc826810ea1b563c9bf7ce6bcb159aed2 100644 (file)
@@ -877,12 +877,12 @@ cmd_logistic (struct lexer *lexer, struct dataset *ds)
                  lr.print |= PRINT_CI;
                  if (lex_force_match (lexer, T_LPAREN))
                    {
-                     if (! lex_force_int (lexer))
+                     if (! lex_force_num (lexer))
                        {
                          lex_error (lexer, NULL);
                          goto error;
                        }
-                     lr.confidence = lex_integer (lexer);
+                     lr.confidence = lex_number (lexer);
                      lex_get (lexer);
                      if ( ! lex_force_match (lexer, T_RPAREN))
                        {