Questions about simulation of business cycle

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 simulation of business cycle

Postby yanyun » Mon Sep 15, 2014 2:50 pm

Hi, everyone, I am a rookie in using Dynare. Now I have a problem about using Dynare to simulate a business cycle process. Actually, I am simulating the results of my pro’s slides about RBC model.

Here are steps of my method. Firstly, I use Dynare to solve the RBC model and get the response to the technology shock. In the first order approximation, y(t)=y(s)+A*[y(t-1)-y(s)]+B*u(t), where y(s) is the steady state value of y. The Dynare manual said that the value information about matrix A and B are store in oo_.dr.ghx and oo_.dr.ghu respectively. Then I take out the matrix in Matlab and do simulation about related business cycle under the technology shock in Dynare.

Although the results of response to technology shock are similar to that of my pro’s slides, the simulated business cycle results are quite different from the slides. Actually the method I used here comes from Prof Erim’s notes, and I follow the instruction in his notes.

Here I upload the codes of Dynare and Matlab, and the documents of my teacher and Prof Erim. I hope someone can kindly tell me where is the problem and how to solve it out. Perhaps, whether there is another method or code to do similar simulation.

Many thanks
Attachments
RBC.mod
(1.39 KiB) Downloaded 80 times
pengfeinew.m
(1.98 KiB) Downloaded 80 times
pengfei model.pdf
(150.6 KiB) Downloaded 112 times
Prof Eric's instruction.pdf
(227.54 KiB) Downloaded 149 times
yanyun
 
Posts: 2
Joined: Mon Sep 15, 2014 2:41 pm

Re: Questions about simulation of business cycle

Postby jpfeifer » Mon Sep 15, 2014 3:11 pm

Look at the more recent slides. You are missing the HP-filtering
------------
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 simulation of business cycle

Postby yanyun » Mon Sep 15, 2014 3:28 pm

jpfeifer wrote:Look at the more recent slides. You are missing the HP-filtering

Thank you for the reply, Jpfeifer. You mean that I miss the part of HP-filtering in the Dynare code when I carry out the simulation?
yanyun
 
Posts: 2
Joined: Mon Sep 15, 2014 2:41 pm

Re: Questions about simulation of business cycle

Postby jpfeifer » Tue Sep 16, 2014 4:57 am

Yes, try using the
Code: Select all
hp_filter=1600

option of 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


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 11 guests