GPM without oil price - soe1bayes - error message

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.

GPM without oil price - soe1bayes - error message

Postby tjonsson » Tue Oct 13, 2009 8:32 am

Hi,

I'm estimating the GPM model, i.e. with three economic areas, bank lending tightness variable but without oil price, downloaded from Douglas Laxtons website. I receive this error message

??? Input argument "exo_nbr" is undefined.

Error in ==> kalman_transition_matrix at 40
B = zeros(nr,exo_nbr);

Error in ==> forcst at 33
[A,B] =
kalman_transition_matrix(dr,nstatic+(1:npred),1:nc,dr.transition_auxiliary_variables);

Error in ==> forecast at 85
[yf,int_width,int_width2,int_band30,int_band70] =
forcst(oo_.dr,y0,options_.periods,var_list);

Error in ==> dynare_estimation_1 at 1577
forecast(var_list_,'smoother');

Error in ==> dynare_estimation at 62
dynare_estimation_1(var_list,varargin{:});

Error in ==> soe1bayes at 1620
dynare_estimation(var_list_);

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


when running the following estimation command

estimation(datafile=data3ctry,nobs=57,mode_compute=0,mode_file=soe1bayes_mode, mh_replic=0,mh_jscale=0.35,mh_nblocks=1, filtered_vars,filter_step_ahead=[1:12],forecast=20, tex, conf_sig=0.95)

Any idea what it refers to?


I'm using Dynare 4.0.4.

I attach code, steady state file and data (it can also be found on http://www.douglaslaxton.org/id4.html)

Regards,

Thomas
Attachments
soe1bayes_steadystate.m
Steady state
(4.3 KiB) Downloaded 70 times
soe1bayes.mod
Model
(25.64 KiB) Downloaded 76 times
data3ctry.m
Data
(11.46 KiB) Downloaded 61 times
tjonsson
 
Posts: 5
Joined: Wed Oct 07, 2009 7:42 am

Re: GPM without oil price - soe1bayes - error message

Postby SébastienVillemot » Mon Oct 19, 2009 9:13 am

Hi,

It looks like your Dynare installation is deficient in some way.

The error message is triggered by line 33 of file "matlab/forcst.m", which on your system is:
Code: Select all
[A,B] = kalman_transition_matrix(dr,nstatic+(1:npred),1:nc,dr.transition_auxiliary_variables);


But the same line in Dynare 4.0.4 reads as follows:
Code: Select all
[A,B] = kalman_transition_matrix(dr,nstatic+(1:npred),1:nc,dr.transition_auxiliary_variables,M_.exo_nbr);

(note the last argument, which is missing on your installation)

Maybe you have two concurrent Dynare versions installed on your system, and your MATLAB path is wrong. Try to clean-up your MATLAB path and/or reinstall Dynare.

Best,
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 15 guests