X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fstats%2Fcrosstabs.c;h=bb63e982538b30a912e52ae94cfcce96c83a76b0;hb=c4bc3574d974d3aaf4d291097c995a31515a308a;hp=9e77c666a5c19dc9a3c3fb9ac43f72059b2a83fe;hpb=f4491cda2715c59495d963d0a3d8ae4518c1c13d;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] = {