Repository navigation
ENH: Add recursive least squares model - #2830
Conversation
|
very good, cusum test is somewhere in diagnostic try to find longer names (IIRC, we have RLS for restricted least squares in a PR, but I'm using |
|
How about I have unit tests against the existing CUSUM |
|
names with (I might not be able to review very soon because I got stuck in sandwiches. sticky exposure :) |
|
No problem on whenever it's convenient to review; thanks. |
|
One thing I wanted to mention is that presumably this would be a model where allowing the formula interface would make sense, but I don't know much about getting that working. |
|
just try out
|
| return out | ||
|
|
||
| @cache_readonly | ||
| def recursive_resid(self): |
There was a problem hiding this comment.
postfix naming
resid_recursive
|
quick browse again. The only change I see is to change the name of Inference on parameters, standard errors, wald tests, ... are currently not available, AFAICS, are they? @ChadFulton Given that we haven't received any feedback by potential users, I would merge this as is. We expand it in future when we get feedback or find our own additional uses. |
Inference on the final recursive parameters is available as usual (the Results object is populated with the parameters and standard errors from the final estimates at the end of the sample); unless I've misunderstood your point? |
|
Assuming all comes back green I will aim to merge this evening, unless something else comes up. |
good, I was thinking of multivariate estimation problems where we would want to have inference for all estimated parameters, not just the final. (I don't know if there is a usecase for those.) |
|
If Travis and Coveralls come back green, I will merge. |
|
Reminder on the BDS test reminded me that before I merge I need to add to release notes. |
|
@ChadFulton You could add to the release notes after merging this I just opened the PR with my branch that creates the release file there are also statespace models that need some more description |
|
Okay, I'll add to the release notes for 0.8 when they're merged. |
Closes #2759.
This adds a recursive least squares model at
statsmodels.regression.rls, where computations are handled by the Kalman filter. In addition to the recursive coefficient estimates, it includes CUSUM and CUSUM of squares statistics and diagnostic plots.See the example notebook rendered here: http://nbviewer.jupyter.org/gist/ChadFulton/7a63fbfca03276a04f2a