statsmodels.genmod.generalized_estimating_equations.NominalGEE.compare_score_test¶
-
NominalGEE.compare_score_test(submodel)¶ Perform a score test for the given submodel against this model.
- Parameters
- submodel
GEEResultsinstance A fitted GEE model that is a submodel of this model.
- submodel
- Returns
Adictionarywithkeys“statistic”, “p-value”,and“df”,containingthescoreteststatistic,itschi^2 p-value,andthedegreesoffreedomusedtocomputethep-value.
Notes
The score test can be performed without calling ‘fit’ on the larger model. The provided submodel must be obtained from a fitted GEE.
This method performs the same score test as can be obtained by fitting the GEE with a linear constraint and calling score_test on the results.
References
Xu Guo and Wei Pan (2002). “Small sample performance of the score test in GEE”. http://www.sph.umn.edu/faculty1/wp-content/uploads/2012/11/rr2002-013.pdf