IRFs

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

IRFs

Postby eta » Sat Oct 25, 2014 1:47 pm

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.
eta
 
Posts: 70
Joined: Sat Sep 27, 2014 3:48 pm

Re: IRFs

Postby jpfeifer » Wed Oct 29, 2014 10:41 am

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.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: IRFs

Postby eta » Wed Oct 29, 2014 7:42 pm

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 ?
eta
 
Posts: 70
Joined: Sat Sep 27, 2014 3:48 pm

Re: IRFs

Postby jpfeifer » Thu Oct 30, 2014 6:01 am

You have to redeclare eta as an varexo and then specify its time path in the shocks-block
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests

cron