kakaru
March 21, 2022, 7:57am
1
Hi everyone
I’m confused with how to draw usual impulse response in case of
occasionally binding constraints ( as dynare routinely does without such constraint )
in dynare version 5.
My purpose is to draw impulse response in case of Gali and Monacelli(2005)
with downward nominal wage rigidity and fixed exchange rate ( e = 0 ).
DNWRPEG.mod (6.0 KB)
Attached file is .mod file I’m working on.
Thanks a lot for your help!
Max1
March 21, 2022, 8:36am
2
Hi,
the file params_peg
is missing.
What exactly is your question?
Drawing the IRFs could be done by Dynare with occbin_graph(noconstant)
or manually
by using the IRFs stored in oo_.occbin.simul.piecewise
1 Like
kakaru
March 21, 2022, 8:43am
3
Dear Max1
Thanks for your fast reply
Sorry for missed file, and I attached both files
DNWRPEG.mod (5.9 KB)
params_peg.mat (988 Bytes)
My question is about drawing impulse response for one-time one unit shock in OccBin,
, however the following block
shocks(surprise);
var e_z1_star;
periods 1;
values 1;
end;
seems not proper way to draw usual impulse response graph.
, and one more question
Is there any way to recover theoretical moments of variables, for example ;
pi_pos = strmatch(‘pi’, M_.endo_names, ‘exact’);
oo_.var(pi_pos,pi_pos);
It cannot find oo_.var T T
Thanks again!
Max1
March 21, 2022, 8:58am
4
kakaru:
My question is about drawing impulse response for one-time one unit shock in OccBin,
, however the following block
shocks(surprise);
var e_z1_star;
periods 1;
values 1;
end;
seems not proper way to draw usual impulse response graph.
Yes, there is a bug, see here occbin: fix bug if there is only a surprise shock in the first period (3b592534) · Commits · Dynare / dynare · GitLab
Theoretical moments are not computed with OccBin.
You need to compute the empirical moments.
1 Like
kakaru
March 21, 2022, 9:07am
5
Dear Max1,
I see.
Thanks for your great help!
Your prompt reply saved me.
Have a nice day!