You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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)
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.
Activity
jseabold commentedon May 6, 2013
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.
josef-pkt commentedon May 6, 2013
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_causalityis 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.
jseabold commentedon May 6, 2013
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.
josef-pkt commentedon May 6, 2013
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)
jseabold commentedon May 6, 2013
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?