steady-state file not computing the steady-state

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.

steady-state file not computing the steady-state

Postby ghazika1 » Sun May 03, 2015 9:34 pm

Hi,

I appreciate it if someone can take a look and let me know where I'm going wrong. (I'm using Dynare 4.4.2)

I changed the rbc_monopolistic.mod file (in Dynare examples, written by Fernandez-Villaverde) so that I can compute the steady-state values within a steady-state file. I wrote a function res_lss.m to calculate the 'error' generated by an ad-hoc value of steady-state for labor (l_ss). The files are attached.

The rbc_monopolistic_steadystate.m uses the function res_lss.m to find the value of labor (l_ss) that satisfies the steady-state equations (i.e. generates no error). This l_ss is then used to calculate the rest of the steady-state values. The static equations are all satisfied (to see it, comment out the static equations in the steady-state file). Also, the steady-state file is the one that I downloaded from the forum and modified (dog_steadystate.m).

The error that I get is:
"Error using print_info (line 72)
The steadystate file did not compute the steady state"

Thank you very much,
Ghazika1
Attachments
rbc_monopolistic.mod
(1.9 KiB) Downloaded 59 times
rbc_monopolistic_steadystate.m
(2.07 KiB) Downloaded 58 times
res_lss.m
(686 Bytes) Downloaded 54 times
ghazika1
 
Posts: 9
Joined: Thu Jul 10, 2014 3:52 am

Re: steady-state file not computing the steady-state

Postby jpfeifer » Tue May 05, 2015 3:41 pm

Thou shalt never name something i!
Rename i into investment and it will work.
------------
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: steady-state file not computing the steady-state

Postby ghazika1 » Tue May 05, 2015 5:25 pm

Yes it does! Great! Thank you Johannes, I would probably never catch this subtle error myself.
ghazika1
 
Posts: 9
Joined: Thu Jul 10, 2014 3:52 am


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 7 guests