-
Notifications
You must be signed in to change notification settings - Fork 2
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
Error when mixing zero and sign restrictions #56
Comments
Hi, |
Sorry for this sequence of messages... Just learning how the code works. It appears that while putting the column with zeros first makes the code run without error messages, the IRFs produced under this constellation have no confidence bands. Reverting to NA in place of the 0s produces a whole non-degenerate distribution of the posterior. I understand from this experiment that indeed there is some problem in the mixture of zeros and sign restrictions in certain cases. Cheers Gianni |
Hi, I am facing a smiliar issue when trying to model the global market of aluminium. My work is in line with Kilian & Murphy (2014) and Boer, et al. (2024) . My endogenous variables are a global real economic activity index (REA), the percentage growth of production, log real prices and the difference of log production. I additionally add a set of deterministics as exogenous variables:
I hypothesize four structural shocks: Aggregate demand, flow supply, contemporaneous metal-specific demand and expectational metal-specific demand. Moreover, I hypothesize that their respective effects on impact are:
This therefore translates into the sign-restrictions matrix:
However I get a similar error when trying to estimate the model:
Should we try to reorder the variables as to ensure that some of the identification restrictions in the original papers hold? |
Hey @adamwang15 Could you please have a look at this? Cheers, T |
Hi @giannilmbd @JPablo1203 @donotdespair Thanks for sharing your experience using the package! Yes, I think we should reorder the shocks so that those with zero restrictions are placed at the beginning. If you take a look at Arias, Rubio-Ramírez & Waggoner (2018), on page 689, especially in footnote 7, the authors implicitly suggest we should order zero restricted shocks first. A more technical reason is, in Algorithm 2 Step 3 if the first shock has no zero restrictions, then the dimension of For confidence bands, I suspect you have only one effective draw, therefore the confidence band is equal to the single draw. Increasing the total number of samples |
Hi, I kept experimenting with the package and decided to add narrative sign-restrictions, in top of some 0 restrictions on the impact matrix. I once again am trying to model the supply of a commodity with monthly data, I assume that, in the short run, the supply is inelastic, which would translate into a bunch of 0 restrictions. I reorganised the variables and impact matrix as to have the 0's on the first columns. Moreover, I added a series of narrative sign-restrictions for the 2008 crisis and the Ukraine war:
If I run the model without the narrative sign-restrictions, everything works properly. However, when adding the narrative sign-restrictions, I get this error:
Do you know why this may be the case? Could it be explained by the fact I added to many exclusion restrictions? |
Hi @JPablo1203 Thanks for sharing your code and output! I suspect this is a numerical problem that is specific to your dataset, could you try the following:
We will also try to fix this in the algorithm regarding the computation of null space:
|
Hi,
I get this error
when I mix sign and zero restrictions eg like
Note that I also have narrative restrictions, in case it matters.
When I replace the 0s with NA, the program works fine.
I'm using
Thanks and best
Gianni
The text was updated successfully, but these errors were encountered: