It seems in the latest version of pandas, all the ols functionality has been deprecated (pandas.stats is effectively gone, and doesn't have PanelOLS or the ols function). I am trying to run a panel regression with statsmodels, but can't find an effective way to do so? Previously I could use code like this:
panel_ols = ols(y=DataFrame, x=DataFrame, ...,)
This would estimate coefficients using all the data in a single panel regression.
Any way to do this now?
numpy
has builtin functionality for OLS regression. See- docs.scipy.org/doc/numpy/reference/generated/… – Andrew L