Hansen[1985]: Standard deviations of marco variables

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.

Hansen[1985]: Standard deviations of marco variables

Postby Pjotre7 » Mon Sep 21, 2009 2:44 pm

Dear all,

enlosed there is the .mod file for Hansen's[1985] RBC model. Unfortunately, I get counterintuitive results. All the standard deviations are smaller than expected given the set of parameters:

For consumption: 0.0048 instead of about 0.5,
For investment: 0.0183 instead of about 5.5.

Furthermore, the difference between the standard deviations of consumption and investment are pretty small. Do you have any ideas for the reasons for these results.

Many thanks for your help.

Kind regards

Peter
Attachments
Hansen.mod
(1.23 KiB) Downloaded 661 times
Pjotre7
 
Posts: 4
Joined: Fri Aug 21, 2009 8:07 am
Location: Ingolstadt, Germany

Re: Hansen[1985]: Standard deviations of marco variables

Postby StephaneLhuissier » Mon Nov 23, 2009 3:19 pm

I have attached a mod file replicating the moments of table 1 in Hansen (1985) : "Indivisible labor and the business cycle". Contrary to Hansen, I compute the theoritical moments. This explains that I do not exactly obtain the same results.
Attachments
Hansen85.mod
(3.55 KiB) Downloaded 788 times
Stéphane Lhuissier
CEPII
http://www.stephanelhuissier.eu
StephaneLhuissier
 
Posts: 20
Joined: Fri Oct 30, 2009 1:47 pm

Re: Hansen[1985]: Standard deviations of marco variables

Postby AlineZ » Sun Aug 18, 2013 5:41 pm

Dear all,

I have a question concering the output equation. You were using k lagged for one period, but Hansen (1985) defined the output as y=lambda*(k^theta)*(h^(1-theta)) that leads to an autocorrelation of all variables of |1,00|. Could you explain why you used the lagged term?

Thank you very much!
Kind regards,
Aline
AlineZ
 
Posts: 3
Joined: Sun Aug 18, 2013 5:26 pm

Re: Hansen[1985]: Standard deviations of marco variables

Postby jpfeifer » Mon Aug 19, 2013 6:45 am

That is due to Dynare's end of the period stock notation. See the manual.
------------
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: Hansen[1985]: Standard deviations of marco variables

Postby AlineZ » Mon Aug 19, 2013 9:10 am

Thank you very much!
AlineZ
 
Posts: 3
Joined: Sun Aug 18, 2013 5:26 pm

Re: Hansen[1985]: Standard deviations of marco variables

Postby AlineZ » Wed Aug 21, 2013 8:34 am

Hi,

I have one further question: why is the shock term (4) (Hansen, 1985, p. 313) transformed to lambda = lambda(-1)*gamma+e?

Thank you,
Aline
AlineZ
 
Posts: 3
Joined: Sun Aug 18, 2013 5:26 pm

Re: Hansen[1985]: Standard deviations of marco variables

Postby jpfeifer » Thu Aug 22, 2013 7:23 am

Because that is the timing convention. You define lambda at time t using the exogenous shocks at time t. The original formula used the exogenous shock at time t+1.
------------
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: Hansen[1985]: Standard deviations of marco variables

Postby Logan_Collins » Sat Aug 24, 2013 11:55 am

Hi everyone,

I am currently trying to replicate Hansen's paper, but I do not understand, why we need to take the logarithm in the shock term.
I saw that this was done in StephaneLhuissier's .mod-file. If the logarithm is not taken Dynare cannot find a solution. Could someone explain why? Thank you very much,

Logan
Logan_Collins
 
Posts: 1
Joined: Sat Aug 24, 2013 11:46 am

Re: Hansen[1985]: Standard deviations of marco variables

Postby jpfeifer » Mon Aug 26, 2013 8:50 am

There are two ways. You can either use
Code: Select all
Y = LAMBDA*K(-1)^(theta)*H^(1-theta);
log(LAMBDA) = gam*log(LAMBDA(-1)) + EPS;

or redefine LAMBDA=log(LAMBDA) and use
Code: Select all
Y = exp(LAMBDA)*K(-1)^(theta)*H^(1-theta);
LAMBDA = gam*LAMBDA(-1) + EPS;


Both yield essentially the same lognormal process (except for a different steady state).
------------
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: Hansen[1985]: Standard deviations of marco variables

Postby jpfeifer » Sat Aug 22, 2015 4:05 pm

A replication file is now available at https://github.com/JohannesPfeifer/DSGE_mod
------------
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 contributions and examples

Who is online

Users browsing this forum: No registered users and 1 guest