You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OLS obsolete, I guess we have already everything covered (and more than pandas)
Moving/Rolling and Expanding OLS: I haven't looked in a long time.
Ignore and let users use generic rolling methods, or write specific code?
Panel data: AFAIR, pandas only has fixed effects, which is just OLS with dummies (e.g. use patsy).
We have open issues to concentrate out the fixed effects dummies Absorbing fixed effects #2568, see also SUMM/ENH: sparse matrix support in models #2710 (sparse matrices)
Panel robust covariance matrices need some cleanup, independently of this.
Econometrics panel data support with two random effects is in PR. WIP: Add Panel Data models #1133
MixedLM has more general mixed effects structure that also covers now crossed effects.
VAR: I guess it's covered by VAR in statsmodels, but I never compared.
Not clear: missing value handling, balanced panel structure, there might be some details or options that don't work the same way.
@RedPandaHat votes and usecases are useful for the design.
AFAIU, the simplest case would just be a loop using pandas rolling_apply.
My two main design question (I haven't looked yet), are
what do we need to keep from each regression.
how much special code should we add to speed up the calculations.
and related to speed:
some faster methods will be numerically less stable than the full OLS estimate in each window.
Is trading off numerical precision in "not nice" problems for increase speed worth the effort?
related design for recursive (expanding) ols using the new statespace models is also still a bit open #2830
Adding another vote. pandas' implementation doesn't appear at a glance to incredibly optimized (much of the rolling code is in Python, not Cython, for example), but nonetheless the rolling implementation is about 50x faster than running the individual regressions in statsmodels currently.
Activity
RedPandaHat commentedon Apr 21, 2016
If I might throw in a vote -- we use rolling OLS a great deal, and it would be helpful to still have this available via a simple function call.
josef-pkt commentedon Apr 21, 2016
@RedPandaHat votes and usecases are useful for the design.
AFAIU, the simplest case would just be a loop using pandas rolling_apply.
My two main design question (I haven't looked yet), are
and related to speed:
Is trading off numerical precision in "not nice" problems for increase speed worth the effort?
related design for recursive (expanding) ols using the new statespace models is also still a bit open #2830
Liam3851 commentedon Aug 23, 2016
Adding another vote. pandas' implementation doesn't appear at a glance to incredibly optimized (much of the rolling code is in Python, not Cython, for example), but nonetheless the rolling implementation is about 50x faster than running the individual regressions in statsmodels currently.
ENH: Add rolling WLS and OLS
ENH: Add rolling WLS and OLS
ENH: Add rolling WLS and OLS
ENH: Add rolling WLS and OLS
ENH: Add rolling WLS and OLS
ENH: Add rolling WLS and OLS
ENH: Add rolling WLS and OLS
ENH: Add rolling WLS and OLS
ENH: Add rolling WLS and OLS
ENH: Add rolling WLS and OLS
ENH: Add rolling WLS and OLS
ENH: Add rolling WLS and OLS
ENH: Add rolling WLS and OLS
ENH: Add rolling WLS and OLS