Access standardized residuals, cook's values, hatvalues (leverage) etc. easily in Python?

前端 未结 2 2090
闹比i
闹比i 2021-02-08 20:47

I am looking for influence statistics after fitting a linear regression. In R I can obtain them (e.g.) like this:

hatvalues(fitted_model) #hatvalues (leverage)
c         


        
2条回答
  •  一生所求
    2021-02-08 21:51

    I found it here:

    http://www.statsmodels.org/dev/generated/statsmodels.stats.outliers_influence.OLSInfluence.summary_frame.html

    OLSInfluence.summary_frame()
    

提交回复
热议问题