The IF-statement within external function in dynare 4.2.5

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.

The IF-statement within external function in dynare 4.2.5

Postby bbilici » Sun May 13, 2012 4:35 pm

Dear all,

I am simulating a structural model using dynare for interest rate commitment on Taylor rule.

First, I have menaged to simulate the model perfectly with a standard Taylor rule, but I couldn't do it by addding a commitment to it.

the standard taylor rule in my model is :

ibase=phi_i*ibase(-1)+(1-phi_i)*(r+pistr+phi_x*x+phi_pi*(pi-pistr))

and I want to formulate is as

taylor rule: i = ibase if pi ≥ 0
i = O if pi < 0

for my zero rate commitment analysis

But I couldn't do it in dynare. It would be very helpful for my analysis if someone can offer me a solution for my problem.

Many thanks in advance.

Regards,

Berk BILICI
Last edited by bbilici on Sun May 13, 2012 7:52 pm, edited 1 time in total.
bbilici
 
Posts: 3
Joined: Sun May 13, 2012 3:58 pm

The IF-statement within external function in dynare 4.2.5

Postby bbilici » Sun May 13, 2012 4:42 pm

Dear all,

You can find attached the mod file which I have used for the simulation of the structural model.

Thank you in advance.

Berk BILICI
Attachments
bbtaylorrule.mod
(1.71 KiB) Downloaded 81 times
bbilici
 
Posts: 3
Joined: Sun May 13, 2012 3:58 pm

Re: The IF-statement within external function in dynare 4.2.

Postby jpfeifer » Sun May 13, 2012 7:57 pm

Are you sure your model can be solved with perturbation techniques? Doesn't the type of rule you propose introduce a kink to the policy function?
------------
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: The IF-statement within external function in dynare 4.2.

Postby bbilici » Mon May 14, 2012 10:16 pm

Dear jpfeifer,

I am trying to reproduce the results of the model used in a paper.

And in the paper it is indicated by the authors that they have used a stacked-time algortim of Hollinger (1996) for solving the model.

Actually I have done the simulation with the baseline taylor rule and the results are almost the same as in the paper, but my problem is to add zero interest rate commitment to the model for a second time simulation.

Thank you for your reply.
bbilici
 
Posts: 3
Joined: Sun May 13, 2012 3:58 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 5 guests