King and Rebelo (1999)

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.

King and Rebelo (1999)

Postby StephaneLhuissier » Thu Nov 19, 2009 11:28 am

I have attached a mod file replicating the theoritical moments and the impulse responses of King and Rebelo (1999) : " Resuscitating Real Business Cycles". This is a standard RBC model.

Stéphane
Attachments
KingRebelo99.mod
(4.18 KiB) Downloaded 1022 times
Stéphane Lhuissier
CEPII
http://www.stephanelhuissier.eu
StephaneLhuissier
 
Posts: 20
Joined: Fri Oct 30, 2009 1:47 pm

Re: King and Rebelo (1999)

Postby aledinola » Mon Aug 27, 2012 3:47 pm

Hi I just run your code and is really useful. However I tried to simulate by myself the model and I get different results for the moments.. do u know how dynare computes the business cycle statistics? and where does it store them?
I know for example that dynare stores the impulse response function of, say, variable "x" to exo shock "e" in a vector called "x_e", but what is the analog for the moments?

Thanks

ale
aledinola
 
Posts: 2
Joined: Mon Aug 27, 2012 3:31 pm

Re: King and Rebelo (1999)

Postby kyri82 » Tue Aug 28, 2012 12:47 pm

Hi,
Dynare stores the simulated variables in a matrix called oo_.endo_simul, with size J-by-N, where J is the number of (all) variables and N is the number of periods you asked. Dynare drops by default the first one-hundred observations in computing statistics to avoid dependence of moments on initial conditions. This can be modified by including the option "drop" following the stoch_simul command. If you are computing statistics using ALL observations of the (simulated) variables, then it is normal they are different. Then, some differences might come from the way you estimate certain moments compared to the way Dynare does, e.g. how exactly correlations or autocorrelations are estimated (I remember I had something like that with autocorrelations). However, these differences should be minor and I think it should be mostly the initial-conditions thing.

Hope that helps. Good luck!!

K.
kyri82
 
Posts: 141
Joined: Thu Feb 10, 2011 6:14 pm
Location: Toulouse - France


Return to Dynare contributions and examples

Who is online

Users browsing this forum: No registered users and 2 guests