Page 1 of 1
IRFs
Posted:
Sat Oct 25, 2014 1:47 pm
by eta
Hi, I'm trying to plot the IRFs to an exogenous shock with 2 different values of a parameter in the same figure but the attached .mod file doesn't work:
Undefined function or variable 'R'.
Error in BKW2 (line 204)
Reta(:,1)=R;
Error in dynare (line 180)
evalin('base',fname) ;
Does anybody know what the problem is ? Thanks.
Re: IRFs
Posted:
Wed Oct 29, 2014 10:41 am
by jpfeifer
The reason is that you did not tell Dynare to compute IRFs or perform stochastic or determinstic simulations using either simul or stoch_simul. Hence, you are trying to access variables that were never created. Also note that you cannot change parameter simply using
- Code: Select all
eta=0.22;
You would need
- Code: Select all
set_param_value('eta',0.22);
and then rerun simul or stoch_simul.
Re: IRFs
Posted:
Wed Oct 29, 2014 7:42 pm
by eta
Thanks for your answer, but I made a mistake. I have to consider eta as an exogenous variable, not a parameter. The initial value is 0.2, then from period 1 to 10 is equal to 0.22. Can I re-declare the variable ?
Re: IRFs
Posted:
Thu Oct 30, 2014 6:01 am
by jpfeifer
You have to redeclare eta as an varexo and then specify its time path in the shocks-block