Anova test for GLM in python

后端 未结 2 2006
离开以前
离开以前 2021-01-13 20:30

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         


        
2条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-13 21:06

    There isn't, unfortunately. However, you can roll your own by using the model's hypothesis testing methods on each of the terms. In fact, some of their ANOVA methods do not even use the attribute ssr (which is the model's sum of squared residuals, thus obviously undefined for a binomial GLM). You could probably modify this code to do a GLM ANOVA.

提交回复
热议问题