Skip to content

VAR missing t_test, f_test #671

Open

Description

@josef-pkt

I don't see t_test, f_test in the VAR results.

see also issue #99

We need to systematically check that we have all the "usual" methods and attributes.

Activity

  1. jseabold commented on May 6, 2013

    @jseabold
    Member

    What should the API be? I'm not sure you should have to give the full neqs * (k_ar + k_trend) r_matrix. Maybe a dictionary?

    {equation_name : equation_r_matrix, equation_q_matrix}

    Then we can take the dictionary and make the full restriction matrix for this hypothesis.

    If you want to do multiple hypotheses, then it would have to be a list of dictionaries.

    There's also an open issue for how patsy will handle this too IIRC.

  2. josef-pkt commented on May 6, 2013

    @josef-pkt
    MemberAuthor

    Maybe both, as a starter I would be happy with specifying the full matrix.

    {equation_name : equation_r_matrix, equation_q_matrix} won't allow for cross-equation restrictions.

    test_causality is already doing an F-test or wald test.

    I don't think t_test for individual coefficient besides trend will be so interesting, but with f_test we could test specific causality structures, test all lag coefficient of a variable equal zero.

    Just made it up: an example for cross-equation restriction would be a common deterministic trend.
    I don't have any experience with SVAR or whatever restrictions macroeconomists like to impose.

  3. jseabold commented on May 6, 2013

    @jseabold
    Member

    Each dictionary would be merged into the full restrictions matrix under the hood, so I think then you get cross-equation restrictions if I'm thinking about it right. It just keeps you from typing out a bunch of zeros / thinking about equation order, if you don't want to test cross equations.

  4. josef-pkt commented on May 6, 2013

    @josef-pkt
    MemberAuthor

    That depends on how you combine the dictionary into the full restriction matrix.

    combining with block structure for joint but separate hypothesis across equations, or
    horizontal stacking for building up restrictions that affect several equations, but then I don't see how to do a joint hypothesis test.

    Hypothesis: variable 2's lags have no effect on variable 1 and variable 3 (joint test over 2 equations)
    Hypothesis: lags of variable 1 and 3 have no effect on variable 1 (easier because only one equation)

  5. jseabold commented on May 6, 2013

    @jseabold
    Member

    The parameters are assumed to be flattened, so

    One dictionary -> gets combined into one row in the r_matrix -> one hypothesis.
    List of dictionaries -> each dictionary gets combined into a row in the matrix -> multiple hypotheses.

    Should work no?

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