Did I do something wrong

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.

Did I do something wrong

Postby bigbigben » Fri Mar 30, 2007 6:06 pm

Attached is a very simple mod file in Dynare. and we can calculate the steady state value of capital as

K=((1/beta-(1-delta))/alpha)^(1/(alpha-1));

Then compare this solution with the one dynare gives out, please notice that dynare gives out log(K) since I use a log-linearized version in dynare

It looks the solution from dynare is as big as 4 times of the right solution, or I made a mistake in the mod file.
Attachments
dyn_jh_ch_ex1.mod
(662 Bytes) Downloaded 91 times
bigbigben
 
Posts: 171
Joined: Sun May 28, 2006 1:19 am

Postby MichelJuillard » Fri Mar 30, 2007 6:50 pm

The Euler equation should be
exp(lam)=beta*exp(lam(+1))*((1-delta)+alpha*exp(a(+1)+(alpha-1)*k));

instead of
exp(lam)=beta*(exp(lam(+1))*(1-delta)+alpha*exp(a(+1)+(alpha-1)*k));


Best

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 5 guests