Skip to content

REF: VAR outsource var lag selection #4536

Open

Description

@josef-pkt

VAR has too many choice in fit that should be in __init__
one of them is lag selection ic=None

it's partially modularized because it uses a separate select_order method which uses the _estimate_var method.

AFAICS, the lag selection uses different number of observations, i.e. trims initial observation by actual lag instead of by maxlag..
AFAICS, lag_selection doesn't reuse any of the datamatrices, i.e. we repeatedly start from scratch
z = util.get_var_endog(endog, lags, trend=trend, has_constant='raise')

possible alternative
Create VAR with order lags = maxlags and then select the relevant parts of the data matrices, trimmed at common maxlag. Then recreate a VAR with the selected number of lags.

Activity

  1. josef-pkt commented on Apr 23, 2018

    @josef-pkt
    MemberAuthor

    to outsource variable/lag selection in VAR we need

    • a minimal MultivariateOLS class, using endog, exog (i.e. trend + exog + lagged endog), and returning also llf or ssr.cov_resid or both (*))
    • VAR specific ic, currently in VARResults.info_criteria

    (for lag selection we don't need a full VAR model/results pair)

    (*) VARResults.info_criteria uses
    ld = logdet_symm(self.sigma_u_mle) and not llf directly

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions