Repository navigation
Clean up VAR - #815
Clean up VAR#815jseabold wants to merge 29 commits into
Conversation
|
I fixed #142 and the forecast standard error (just needed to use the MLE VCE). For some reason, the forecast standard error agrees with Stata only up to 3 steps out then it's a bit off (regardless of lags used). I don't see anything in Lutkepohl that would suggest a change here and I don't see anything in the |
9267b22 to
b7d7f6a
Compare
|
Is this still active? |
|
Unfortunately yes, but not in the current form. There is rebased version in #3028, which however also predates the VECM merge which included some related, overlapping enhancements and fixes. |
Still a work in progress. Likely take another week or two given I have other obligations this week.
Renames/deprecations
sigma_u -> cov_resid
sigma_u_mle -> cov_resid_mle
endog -> Y
endog_lagged -> X
detomega -> det_cov_resid
_chol_sigma_u -> _chol_cov_resid
_zz -> _XTX
_cov_alpha -> _cov_params_ex_trend
_cov_sigma -> _cov_cov_resid
intercept -> trend_coefs
Only in call signatures and internally
omega -> cov_resid (or cov_resid_mle depending on context)
For VARX:
X <- contains RHS variables
exog <- contains all exogenous variables
signature for VARX
VAR(Y, ..., exog)
Improves the documentation a bit, though there's still some work to do. Added the VAR notebook. Cleaned up some plotting. Add some functions to the statsmodels.tsa.var namespace through var.api.
Closed Issues
#99 - Added conf_int with wrappers.
#380 - Fix IRF plotting settings.
#769 - Stale model issue. Issue exists but behavior raises a warning and is deprecated. Added select_order_fit, deprecated maxlags and lag order selection in methods except for select_order, which is now a class method of VAR.
#757 - Legend in forecast plots.
#756 - Initial values in forecasting, addressed. Use of y is deprecated forecast function is not imported into var namespace, if someone needs it.
#234 - cov_params with wrapper.
TODO
Turn all the smoke tests into real tests.
Clean up the var.rst for refactor.