Questions about Regime or policy switch coding in Dynare

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.

Questions about Regime or policy switch coding in Dynare

Postby ahnulxy » Thu Jun 05, 2014 9:02 pm

I have two policies Taylor rule A and B.
I want to follow Taylor rule A for certain periods time and then switch to rule B for the rest of time.
Is there anyone who can help! Thanks a million!
ahnulxy
 
Posts: 43
Joined: Thu May 10, 2012 7:24 am

Re: Questions about Regime or policy switch coding in Dynare

Postby jpfeifer » Fri Jun 06, 2014 6:27 pm

More information is needed. Do you want a determinstic switch or Markov-switching? Is the change anticipated or a surprise?
------------
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: Questions about Regime or policy switch coding in Dynare

Postby ahnulxy » Fri Jun 06, 2014 9:13 pm

I want a deterministic switch at first.
Taylor rule A: i_t = alpha1*pi_t + beta1*y_t
Taylor rule B: i_t = alpha2*pi_t + beta2*y_t

I want to stick rule A for 10 periods and afterward, I want to follow rule B.
How Can I code this in Dynare?

If could be great if you can give some hint! Thank very much!
ahnulxy
 
Posts: 43
Joined: Thu May 10, 2012 7:24 am

Re: Questions about Regime or policy switch coding in Dynare

Postby jpfeifer » Sat Jun 07, 2014 5:28 am

You define alpha and beta as exogenous variables, i.e. use varexo for them. Then you use the shocks command to set their values for simul. E.g.:
Code: Select all
shocks;
var alpha;
periods 1:10 , 11:20;
values 2, 1.5;
end;
------------
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: Questions about Regime or policy switch coding in Dynare

Postby ahnulxy » Sat Jun 07, 2014 4:25 pm

jpfeifer wrote:You define alpha and beta as exogenous variables, i.e. use varexo for them. Then you use the shocks command to set their values for simul. E.g.:
Code: Select all
shocks;
var alpha;
periods 1:10 , 11:20;
values 2, 1.5;
end;

Thanks very much, jpfeifer! You are so helpful! By the way, could you give me some ideas on how to do this for Markov-switching?
ahnulxy
 
Posts: 43
Joined: Thu May 10, 2012 7:24 am

Re: Questions about Regime or policy switch coding in Dynare

Postby jpfeifer » Wed Jun 11, 2014 9:22 pm

That is not easy. See e.g. http://ideas.repec.org/p/fip/fedkrw/rwp13-01.html. For easy linearized models there may be easier ways, but this is not my area of expertise.
------------
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 5 guests