Error on Dynare for Bayesian DSGE (Justiniano, JME 2010)

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 on Dynare for Bayesian DSGE (Justiniano, JME 2010)

Postby lawrencedang » Tue Feb 19, 2013 11:39 pm

Dear Dynare Experts,

I am replicating a DSGE model in the paper "INVESTMENT SHOCKS AND BUSINESS CYCLES" (Justiniano et. al. 2010 Journal of Monetary Economics) in Dynare,
And calibrate with data used in Smets and Wouthers(2007).

The problem is I get the following error messege from dynare and cannot get posterior estimation of parameters.

Starting MATLAB/Octave computing.


You did not declare endogenous variables after the estimation/calib_smoother command.
Posterior IRFs, posterior moments, smoothed variables will be computed for
the 46 endogenous variables of your model, this can be
very long....


Choose one of the following options:

[1] Consider all the endogenous variables.
[2] Consider all the observed endogenous variables.
[3] Stop Dynare and change the mod file.

options [default is 1] = 2
Loading 230 observations from usmodel_data.mat

??? In an assignment A(I) = B, the number of elements in B and
I must be the same.

Error in ==> set_parameters at 70
M_.params(estim_params_.param_vals(:,1)) = xparam1(offset+1:end);

Error in ==> dynare_estimation_1 at 124
set_parameters(xparam1);

Error in ==> dynare_estimation at 70
dynare_estimation_1(var_list,dname);

Error in ==> invshock at 426
dynare_estimation(var_list_);

Error in ==> dynare at 120
evalin('base',fname) ;


I get stuck now and can not find a way to further modify the code. Can anyone provide me some clues?
The dynare code invshock.mod and invshock_stst.mod(calculating steady states) and the data set can be found in the attached zip file invshock(2).zip.

Many thanks for time and consideration!
With best wishes
Attachments
invshock (2).zip
mod file and data set
(145.95 KiB) Downloaded 251 times
lawrencedang
 
Posts: 1
Joined: Mon Feb 11, 2013 11:11 am

Re: Error on Dynare for Bayesian DSGE (Justiniano, JME 2010)

Postby SébastienVillemot » Fri Mar 08, 2013 11:34 am

The problem is that your posterior mode file has apparently been estimated with a different specification. Delete “usmodel_mode.mat“ and restart the estimation (of course, you’ll have to compute a new posterior mode).
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France


Return to Dynare help

Who is online

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