Help with declaring model local variables

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 declaring model local variables

Postby Nice » Thu Jan 08, 2015 10:20 pm

Hello All,

1. I am estimating a DSGE model and wanted to verify whether I have correctly specified model local variables. I used " A Guide to Specifying Observation Equations" to guide me but am still unclear if I have done so correctly.

2. The estimation runs however I am not sure if the estimation results are correct. I am replicating the model and when I compare the estimation results in Dynare with the ones found in the paper some parameter values are different. For example the habit formation parameter estimate is 0.14 where as in the paper it is 0.5, does this suggest there is an error in the estimation?

Many Many Thanks!
Attachments
leeper_closed_est10b.mod
(15.86 KiB) Downloaded 115 times
Nice
 
Posts: 31
Joined: Fri Jul 11, 2014 5:16 pm

Re: Help with declaring model local variables

Postby jpfeifer » Fri Jan 09, 2015 11:34 am

The model-local variables seem to be OK, but you cannot estimate parameters that are in the shocks-block. If you define
Code: Select all
shocks;
var e_u_b_h  = SIGMA_B_H  ^2;
var e_u_l_h  = SIGMA_L_H  ^2;
var e_u_i_h  = SIGMA_I_H  ^2;
var e_u_a_h  = SIGMA_A_H  ^2;
var e_u_g_h  = SIGMA_G_H  ^2;
var e_u_z_h  = SIGMA_Z_H  ^2;
var e_u_tk_h = SIGMA_TK_H ^2;
var e_u_tl_h = SIGMA_TL_H ^2;
var e_u_tc_h = SIGMA_TC_H ^2;
end;

this only works for calibration. You cannot estimate SIGMA_B_H. Rather, you must estimate
Code: Select all
stderr e_u_b_h,  inv_gamma_pdf, 0.01, inf;
------------
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: Help with declaring model local variables

Postby Nice » Wed Jan 14, 2015 3:45 pm

Thank you so much jpfeifer!! Your help is much appreciated.

Kind Regards,

Nice
Nice
 
Posts: 31
Joined: Fri Jul 11, 2014 5:16 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 11 guests