const double df = 1.0;
const double F = intercept_ssq / df / mse;
tab_text (t, 0, r, TAB_LEFT | TAT_TITLE, _("Intercept"));
- tab_double (t, 1, r, 0, intercept_ssq, NULL, RC_OTHER);
- tab_double (t, 2, r, 0, 1.00, NULL, RC_WEIGHT);
- tab_double (t, 3, r, 0, intercept_ssq / df, NULL, RC_OTHER);
- tab_double (t, 4, r, 0, F, NULL, RC_OTHER);
- tab_double (t, 5, r, 0, gsl_cdf_fdist_Q (F, df, n_total - df_corr),
- NULL, RC_PVALUE);
+ /* The intercept for unbalanced models is of limited use and
+ nobody knows how to calculate it properly */
+ if (categoricals_isbalanced (ws->cats))
+ {
+ tab_double (t, 1, r, 0, intercept_ssq, NULL, RC_OTHER);
+ tab_double (t, 2, r, 0, 1.00, NULL, RC_WEIGHT);
+ tab_double (t, 3, r, 0, intercept_ssq / df, NULL, RC_OTHER);
+ tab_double (t, 4, r, 0, F, NULL, RC_OTHER);
+ tab_double (t, 5, r, 0, gsl_cdf_fdist_Q (F, df, n_total - df_corr),
+ NULL, RC_PVALUE);
+ }
r++;
}
Table: Tests of Between-Subjects Effects
Source,Type I Sum of Squares,df,Mean Square,F,Sig.
Corrected Model,216.017,7,30.860,5.046,.001
-Intercept,3410.526,1,3410.526,557.709,.000
+Intercept,,,,,
Agrp,9.579,1,9.579,1.566,.220
Bgrp,186.225,3,62.075,10.151,.000
Agrp * Bgrp,20.212,3,6.737,1.102,.364
Table: Tests of Between-Subjects Effects
Source,Type I Sum of Squares,df,Mean Square,F,Sig.
Corrected Model,216.017,7,30.860,5.046,.001
-Intercept,3410.526,1,3410.526,557.709,.000
+Intercept,,,,,
Bgrp,193.251,3,64.417,10.534,.000
Agrp,2.553,1,2.553,.418,.523
Bgrp * Agrp,20.212,3,6.737,1.102,.364
Table: Tests of Between-Subjects Effects
Source,Type II Sum of Squares,df,Mean Square,F,Sig.
Corrected Model,216.017,7,30.860,5.046,.001
-Intercept,3410.526,1,3410.526,557.709,.000
+Intercept,,,,,
Agrp,2.553,1,2.553,.418,.523
Bgrp,186.225,3,62.075,10.151,.000
Agrp * Bgrp,20.212,3,6.737,1.102,.364