help with a code

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.

help with a code

Postby jugowar » Sun Aug 17, 2014 8:08 pm

Can anyone help with the execution of this two-sector growth model code? The SS values are correctly given to the model but I consistently obtain a warning that they are not correct.
Attachments
rbc_informal.mod
(2.36 KiB) Downloaded 37 times
jugowar
 
Posts: 1
Joined: Sun Aug 17, 2014 8:06 pm

Re: help with a code

Postby jpfeifer » Mon Aug 18, 2014 7:24 am

If you use
Code: Select all
resid(1)

before
Code: Select all
steady;

you will get
Residuals of the static equations:

Equation number 1 : 0.1168
Equation number 2 : 0.52869
Equation number 3 : -0.22288
Equation number 4 : -0.0028
Equation number 5 : -0.0021699
Equation number 6 : -0.00038533
Equation number 7 : -0.011148
Equation number 8 : -6e-05
Equation number 9 : 0

If you are sure your steady state values provided in initval are correct, then the first 8 equations are wrong.

A steady state that is found your equations is
STEADY-STATE RESULTS:

c 802.235
k 2566.73
n_f 738.677
n_i 79.2343
l 182.092
y_f 1156.61
y_i 147.48
i 205.338
z_f 0



Note also that your timing must be wrong. There are no variables dated (+1), indicating your Euler equation is incorrect.
------------
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 4 guests