@item The dependent variable @math{Y} has the following relationship to the
explanatory variables:
-@math{Y_i = b_0 + b_1 X_{1i} + ... + b_k X_{ki} + Z_i}
+@math{Y_i = b_0 + b_1 X_{1i} + ... + b_k X_{ki} + Z_i}
where @math{b_0, b_1, @dots{}, b_k} are unknown
coefficients, and @math{Z_1,@dots{},Z_n} are independent, normally
distributed @dfn{noise} terms with mean zero and common variance.
All other subcommands are optional:
-The @subcmd{STATISTICS} subcommand specifies additional statistics to be displayed.
+The @subcmd{STATISTICS} subcommand specifies which statistics are to be displayed.
The following keywords are accepted:
@table @subcmd
The covariance matrix for the estimated model coefficients.
@item DEFAULT
The same as if R, COEFF, and ANOVA had been selected.
+This is what you get if the /STATISTICS command is not specified,
+or if it is specified without any parameters.
@end table
The @subcmd{SAVE} subcommand causes @pspp{} to save the residuals or predicted
}
else if (lex_match_id (lexer, "STATISTICS"))
{
+ unsigned long statistics = 0;
lex_match (lexer, T_EQUALS);
while (lex_token (lexer) != T_ENDCMD
{
if (lex_match (lexer, T_ALL))
{
- regression.stats = ~0;
+ statistics = ~0;
}
else if (lex_match_id (lexer, "DEFAULTS"))
{
- regression.stats |= STATS_DEFAULT;
+ statistics |= STATS_DEFAULT;
}
else if (lex_match_id (lexer, "R"))
{
- regression.stats |= STATS_R;
+ statistics |= STATS_R;
}
else if (lex_match_id (lexer, "COEFF"))
{
- regression.stats |= STATS_COEFF;
+ statistics |= STATS_COEFF;
}
else if (lex_match_id (lexer, "ANOVA"))
{
- regression.stats |= STATS_ANOVA;
+ statistics |= STATS_ANOVA;
}
else if (lex_match_id (lexer, "BCOV"))
{
- regression.stats |= STATS_BCOV;
+ statistics |= STATS_BCOV;
}
else if (lex_match_id (lexer, "CI"))
{
- regression.stats |= STATS_CI;
+ statistics |= STATS_CI;
if (lex_match (lexer, T_LPAREN))
{
goto error;
}
}
+
+ if (statistics)
+ regression.stats = statistics;
+
}
else if (lex_match_id (lexer, "SAVE"))
{