Anova test for GLM in python
问题 I am trying to get the F-statistic and p-value for each of the covariates in GLM. In Python I am using the stats mode.formula.api to conduct the GLM. formula = 'PropNo_Pred ~ Geography + log10BMI + Cat_OpCavity + CatLes_neles + CatRural_urban + \ CatPred_Control + CatNative_Intro + Midpoint_of_study' mod1 = smf.glm(formula=formula, data=A2, family=sm.families.Binomial()).fit() mod1.summary() After that I am trying to do the ANOVA test for this model using the anova in statsmodels.stats table1