-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sign-restrictions #84
Comments
Hey Moustafa,
|
Thank you, Still does not work I literary followed and imposed the sign restrictions as in this paper: https://www.ecb.europa.eu/pub/pdf/scpwps/ecb.wp2560~f98f3c7d78.en.pdf Though the paper does not follow the HBVAR method, but I expect not be an issue this difference. |
That's interesting - if it doesn't stop early on (no shocks found at all) you can increase the allowed draws further. Otherwise I'll try to have a look. |
I tried already with a very large number of draws. I would appreciate if you can test it. I send before the input data and the relevant code. |
Could it be that the ordering of the variables in Table 1 is off? They list
Seems like restrictive US MP doesn't fit? |
Not sure I fully understand what you mean. Can you please suggest how the table with the sign restrictions should be ? |
Update The identification strategy worked with the BEAR toolbox by ECB. So, it might be the case that Hierarchical BVARs need other configurations or not stable for this problem. |
They name a restrictive EA MP shock as based on German bonds, and a favourable EA macro shock as based on European stocks. However, for the US they base a restrictive MP shock o US stocks. That seems inconsistent? Interesting, that shouldn't be the case – but gives me something to work with. |
The way you should read from the economics point of view is that a restrictive US MP shock should simultaneously a) increase EURO's area yields, b) depress asset prices in the US, c) narrow the bond spreads and d) appreciate USD vs EUR. Their identification strategy makes a lot of sense and I don't see some inconsistency (working in trading floor myself what they say is also very true and accurate). In their identification strategy, they also take into account the global position of US. i.e. if the US "sneezes the rest of the world catches a cold". This is why in their paper discuss about spillovers. I recommend to try the BEAR toolbox (i can help sending the file with the data in the format BEAR wants it as this part is a bit of a pain) and see why BEAR can do it and not your library. I think your package has a lot of potentials if you keep working on it - you only need some extra functionalities (e.g. Historical decomposition, ) and make it as robust and flexible as possible. Please keep me updated and thanks for the help. |
I don't think that Hierarchical BVARs are not stable for this problem. It seems to me that negative/restrictive shocks are not allowed in the current implementation: Line 88 in 14cfbb8
So, with the sign matrix under consideration,
it will not be possible finding a matrix fitting the sign restrictons. Would it be valid to change the signs in the columns with a negative diagonal element, then compute the IRFs and eventually change the signs of the IRFs where one is interested in a restrictive shock? E.g.
|
Hey, I haven't had time to retrace everything, but figured I'd mention that Lukas updated the sign-restriction algorithm in a branch: Also, note to self – we really need to test and release these fixed and the HDecomp features. |
Had the time to revisit this – |
I get an error when I try to use sign restrictions.
Below MWE to reproduce:
Attached the raw data
bvar_data_raw.csv
The text was updated successfully, but these errors were encountered: