From defc31367050b1f574cde53b76c1ab83853a47ed Mon Sep 17 00:00:00 2001 From: John Darrington Date: Thu, 16 Jan 2014 12:45:54 +0100 Subject: [PATCH] LOGISTIC REGRESSION: Allow fractional confidence interval --- src/language/stats/logistic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/language/stats/logistic.c b/src/language/stats/logistic.c index eb200fe378..c3a152afc8 100644 --- a/src/language/stats/logistic.c +++ b/src/language/stats/logistic.c @@ -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)) { -- 2.30.2