steadystate.m

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.

steadystate.m

Postby LEM » Tue Oct 21, 2014 9:37 am

Hey,

I’m working through a baseline RBC model. All worked fine when I entered the exact s.s. into the model file, but when I created a separate _steadystate.m file the computation failed. I thought I augmented the steadystate.m examples provided here, but apparently I made a mistake. Can someone help me? I know that the calculations in the steadystate.m file should be correct, because matlab can calculate them separately.
I’m happy for any help.

LEM
Attachments
rbc_baseline_steadystate.m
(1.49 KiB) Downloaded 47 times
rbc_baseline.mod
(971 Bytes) Downloaded 46 times
LEM
 
Posts: 3
Joined: Tue Oct 21, 2014 9:01 am

Re: steadystate.m

Postby jpfeifer » Tue Oct 21, 2014 12:53 pm

Where did you get the wrong steady state file from? The structure should follow the one in the NK_baseline_steady_state.mod in the examples folder of Dynare. I corrected it. Moreover, your Euler equation was wrong (missing bracket after the stochastic discount factor; the undepreciated capital part must be discounted as well) as were the steady state equations. Attached is a hopefully correct version.
Attachments
rbc_baseline_steadystate.m
(1.67 KiB) Downloaded 72 times
rbc_baseline.mod
(1003 Bytes) Downloaded 62 times
------------
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: steadystate.m

Postby LEM » Tue Oct 21, 2014 4:04 pm

Thanks a lot for your reply. It works perfectly.
I guess I tried a combination of a .m file I found online and lecture notes, obviously not in an appropriate way. Actually, I found out that one of my older attempts worked when I changed the steady state equations in the way you did. But I don’t really understand my mistake. Is the definition of r one plus the interest rate (r= 1+ interest rate)? If yes, why do I have to integrate them?
Thanks
LEM
LEM
 
Posts: 3
Joined: Tue Oct 21, 2014 9:01 am

Re: steadystate.m

Postby jpfeifer » Wed Oct 29, 2014 10:38 am

Your first order condition was wrong. The stochastic discount factor also applies to the undepreciated part of capital. See any macro textbook on the RBC model.
------------
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 7 guests

cron