.descending = false,
};
bool show_tables = true;
+ int exclude_ofs = 0;
lex_match (lexer, T_SLASH);
for (;;)
{
else if (lex_match_id (lexer, "MISSING"))
{
lex_match (lexer, T_EQUALS);
+ exclude_ofs = lex_ofs (lexer);
if (lex_match_id (lexer, "TABLE"))
proc.exclude = MV_ANY;
else if (lex_match_id (lexer, "INCLUDE"))
/* Missing values. */
if (proc.mode == GENERAL && !proc.exclude)
{
- msg (SE, _("Missing mode %s not allowed in general mode. "
- "Assuming %s."), "REPORT", "MISSING=TABLE");
+ lex_ofs_error (lexer, exclude_ofs, exclude_ofs,
+ _("Missing mode %s not allowed in general mode. "
+ "Assuming %s."), "REPORT", "MISSING=TABLE");
proc.exclude = MV_ANY;
}
{
if (proc->n_pivots)
{
- msg (SE, _("%s must be specified before %s."), "VARIABLES", "TABLES");
+ lex_next_error (lexer, -1, -1, _("%s must be specified before %s."),
+ "VARIABLES", "TABLES");
return false;
}
double expected_value = xt->row_tot[r] * xt->col_tot[c] / xt->total;
double residual = *mp - expected_value;
double sresidual = residual / sqrt (expected_value);
- double asresidual = (sresidual
+ double asresidual
+ = residual / sqrt (expected_value
* (1. - xt->row_tot[r] / xt->total)
* (1. - xt->col_tot[c] / xt->total));
double entries[CRS_N_CELLS] = {