Error calculating steady state for model estimation

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.

Error calculating steady state for model estimation

Postby cw39 » Mon Jun 02, 2014 6:54 am

Hi,

I'm trying to estimate a model with IRS production and a deterministic growth trend using non-stationary data. As such, I've separated the equations linking model variables to data variables into [dynamic] and [static] equations. When the steady state is calculated at the initial parameter values, I get the error message "index exceeds dimensions" in dsge_likelihood at 299. I'm unsure of what I need to manipulate in my code to avoid this error. Thanks!
Attachments
irsdata11.m
(6.6 KiB) Downloaded 35 times
fgIRS.mod
(1.61 KiB) Downloaded 45 times
cw39
 
Posts: 3
Joined: Mon Jun 02, 2014 6:37 am

Re: Error calculating steady state for model estimation

Postby jpfeifer » Mon Jun 02, 2014 8:30 am

Looks like a bug. I will look into it and keep you posted.
------------
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: Error calculating steady state for model estimation

Postby jpfeifer » Mon Jun 02, 2014 11:53 am

Replace the Dynare file for 4.4.2 with the attached one. The problem is that your steady_state_model block does not solve the dynamic model. In the dynamic model the steady for the c_obs is g while it is 1 on the static model.
Attachments
dsge_likelihood.m
(31.41 KiB) Downloaded 34 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: Error calculating steady state for model estimation

Postby cw39 » Tue Jun 03, 2014 12:26 am

Thank you! I'm not sure I understand quite how to deal with this though, since the observed variables are non stationary. From reading around, the sense I got was that I needed to define the observables as dummy variables in the steady state, but apparently I'm missing something about how to do this correctly. Is it possible to do this or do I need to make the data stationary?
cw39
 
Posts: 3
Joined: Mon Jun 02, 2014 6:37 am

Re: Error calculating steady state for model estimation

Postby jpfeifer » Fri Jun 06, 2014 3:06 pm

I am not following. Does you model feature a unit root? Data usually is non-stationary and you have to link the data to the model. From what you are doing, it seems to me as if you are essentially trying to use growth rates (log first differences) for your data. That can easily be done, see Pfeifer(2013): "A Guide to Specifying Observation Equations for the Estimation of DSGE Models" https://sites.google.com/site/pfeiferecon/Pfeifer_2013_Observation_Equations.pdf
------------
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: Error calculating steady state for model estimation

Postby cw39 » Fri Jun 06, 2014 7:01 pm

After further reflection, I realized that was in fact what I was trying to do and adjusted my code accordingly. Thank you for responding though!
cw39
 
Posts: 3
Joined: Mon Jun 02, 2014 6:37 am


Return to Dynare help

Who is online

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