Pandas with Fixed Effects

假如想象 提交于 2019-12-04 15:48:04

The simplest way to create the dummy variables for the fixed effects is using patsy, or using it via the formula interface to the models in statsmodels.

Statsmodels.OLS, as well as GLM and the discrete models, also have an option to calculate cluster or panel robust (sandwich) covariance matrices for the parameter estimates. Since release 0.6 this can be specified by a cov_type option in the fit method.

statsmodels has currently no panel models that could take correlation across observations into account, however GEE allows one-way cluster correlation in static panel or longitudinal models.

I don't know the details about the panel estimation in pandas, but it's not maintained and will eventually be moved to or replaced by statsmodels.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!