Please help on running 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.

Please help on running a code

Postby irinka » Sun May 18, 2014 9:00 am

Hi again,

I am trying to make an estimation using the MH algorithm and I was wondering if you can help as I have encountered some errors.
Based on the model of De Graeve (2008), I used data for the US economy.

Can you please help me to fix these type of errors? I have used the same calibration as in his working paper.
Here I attached the .mod file and the data used. I am very curious to make it work!

Thank you!
Attachments
dsc1.rar
(12.85 KiB) Downloaded 47 times
irinka
 
Posts: 5
Joined: Fri May 16, 2014 11:25 am

Re: Please help on running a code

Postby irinka » Sun May 18, 2014 11:23 am

Please, can you help me? I really want to understand the mechanism and I cannot figure out how can I solve those errors.

I would really appreaciate your help!
irinka
 
Posts: 5
Joined: Fri May 16, 2014 11:25 am

Re: Please help on running a code

Postby jpfeifer » Sun May 18, 2014 1:49 pm

1. You are using the loglinear option. This will take the log of the data unless you use the logdata option (only available in the unstable version).
2. You have 7 observables, but only 6 shocks with non-zero standard deviation. You must have at least 7, i.e. as many shocks as observables to prevent stochastic singularity.
3. You priors are incompatible with the model. E.g.
Code: Select all
KbarNbar, uniform_pdf, 0, 5; 

i.e. the capital-labor ratio has mean 0 and can be negative. That is wrong. Make sure the model runs with calibrated values (which it currently does not due to Blanchard-Kahn violations) and then use
Code: Select all
estimated_params_init(use_calibration);
end;
------------
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: Google [Bot] and 5 guests