Dynare 4.3.0 KF with missing observations no longer works

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.

Dynare 4.3.0 KF with missing observations no longer works

Postby reluginbuhl » Fri Jun 29, 2012 4:23 pm

I believe I have found a bug in Dynare 4.3.0 when using missing data.

I am having a problem with the newest version of Dynare 4.3.0 when I try to do an estimation with one missing observation in the first period of just one series. The other 'varobs' are all complete. In the earlier version of Dynare (4.2.5) the estimation went just fine when using this data file. (See attached data file.)

In Dynare 4.3.0 I now obtain the following error message:

[Earlier Dynare output removed...]

You did not declare endogenous variables after the estimation/calib_smoother command.
Loading 87 observations from NL_data.m

Index exceeds matrix dimensions.

Error in missing_observations_kalman_filter (line 98)
F = P(z,z) + H(d_index,d_index);

Error in dsge_likelihood (line 620)
[LIK,lik] =
missing_observations_kalman_filter(DynareDataset.missing.aindex,DynareDataset.missing.number_of_observations,DynareDataset.missing.no_more_missing_observations,Y,diffuse_perio
Error in initial_estimation_checks (line 45)
[fval,junk1,junk2,a,b,c,d] =
feval(objective_function,xparam1,DynareDataset,DynareOptions,Model,EstimatedParameters,BayesInfo,DynareResults);

Error in dynare_estimation_1 (line 133)
oo_ =
initial_estimation_checks(objective_function,xparam1,dataset_,M_,estim_params_,options_,bayestopt_,oo_);

Error in dynare_estimation (line 70)
dynare_estimation_1(var_list,dname);

Error in Model_14F_Ratios_schat_NLm4 (line 471)
dynare_estimation(var_list_);

Error in dynare (line 120)
evalin('base',fname) ;

I hope this helps to find and fix this problem.

Sincerely,
Rob Luginbuhl
Attachments
NL_data.m
Here is the data file. The variable I have used: varobs ups_star inflf ix c invest st infl L_obs w g dy; The data in dy has the first observation missing. The others do not.
(12.62 KiB) Downloaded 115 times
reluginbuhl
 
Posts: 53
Joined: Wed Mar 04, 2009 2:41 pm

Re: Dynare 4.3.0 KF with missing observations no longer work

Postby jpfeifer » Fri Jun 29, 2012 6:12 pm

This is a known bug http://www.dynare.org/DynareWiki/KnownBugs that has been fixed in the unstable version. Nevertheless, thanks for reporting.
------------
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: Dynare 4.3.0 KF with missing observations no longer work

Postby reluginbuhl » Mon Jul 02, 2012 11:50 am

Ok. Thank you for the quick reply and sorry I did not do my homework. :oops:
reluginbuhl
 
Posts: 53
Joined: Wed Mar 04, 2009 2:41 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 5 guests

cron