Skip to content

Clean up VAR - #815

Open
jseabold wants to merge 29 commits into
statsmodels:mainfrom
jseabold:var-cleanup
Open

jseabold wants to merge 29 commits into
statsmodels:mainfrom
jseabold:var-cleanup

Conversation

@jseabold

@jseabold jseabold commented May 6, 2013

Copy link
Copy Markdown
Member

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.

@josef-pkt josef-pkt added the PR label Feb 19, 2014
@jseabold

jseabold commented Jun 3, 2014

Copy link
Copy Markdown
Member Author

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 def _omega_forc_cov that has a hard-coded 4. Will have to come back to this.

@jbrockmendel

Copy link
Copy Markdown
Contributor

Is this still active?

@josef-pkt

Copy link
Copy Markdown
Member

Unfortunately yes, but not in the current form.
Some things that are in here have never been fixed or refactored, AFAIK. However this PR also has changes that we don't want, or that by now are likely obsolete.

There is rebased version in #3028, which however also predates the VECM merge which included some related, overlapping enhancements and fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants