X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fstats%2Fcrosstabs.c;h=bb63e982538b30a912e52ae94cfcce96c83a76b0;hb=e5f444ae6a67fdd38c5b08d5ba3592a7fb0f793a;hp=9e77c666a5c19dc9a3c3fb9ac43f72059b2a83fe;hpb=74f55ace53edefd9d8b0d26667aa2f2c00be6016;p=pspp diff --git a/src/language/stats/crosstabs.c b/src/language/stats/crosstabs.c index 9e77c666a5..bb63e98253 100644 --- a/src/language/stats/crosstabs.c +++ b/src/language/stats/crosstabs.c @@ -1717,7 +1717,8 @@ display_crosstabulation (struct crosstabs_proc *proc, 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] = {