Kalman filter

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.

Kalman filter

Postby nymph » Tue Aug 21, 2012 12:09 am

Hi,

I have received an error message as shown below when I run estimation. Could anybody tell me what the problem is and how to solve it? Thanks in advance!

----------------

??? Attempted to access H(2); index out of bounds because numel(H)=1.

Error in ==> univariate_kalman_filter at 170
Fi = z(i,:)*PZ + H(d_index(i));

Error in ==> dsge_likelihood at 686
[LIK, lik] =
univariate_kalman_filter(DynareDataset.missing.aindex,DynareDataset.missing.number_of_observations,DynareDataset.missing.no_more_missing_observations,Y,diffuse_periods+1,size(Y,2),
.
Error in ==> initial_estimation_checks at 45
[fval,junk1,junk2,a,b,c,d] =
feval(objective_function,xparam1,DynareDataset,DynareOptions,Model,EstimatedParameters,BayesInfo,DynareResults);

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

Error in ==> dynare_estimation at 70
dynare_estimation_1(var_list,dname);
nymph
 
Posts: 10
Joined: Thu Mar 17, 2011 8:19 pm

Re: Kalman filter

Postby jpfeifer » Tue Aug 21, 2012 11:21 pm

Are you using the most recent Dynare version? If yes, please post the mod- and the datafile.
------------
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: Kalman filter

Postby rso » Tue Jan 15, 2013 7:52 pm

Hi, I am having the same problem. Unfortunately, I am not authorized to send the mod file neither the data file. The mod file works with loops and I am trying to estimate two different models separatelly. Basically, the loop changes the number of agents in the economy, for example, let be 'i' the number of a certain type of agent, and each agent has different consumption that we denote c_i. Thus, if i = 10, we have a time series of c_1, c_2, ..., c_10 in the model, if i = 30, we have c_1, c_2, ... c_30. When I set i = 10, the mode file works well, however, when I set i = 30, the error message comes. Only for reason of testing, I increase the 'i' and the problem show up for all i > 23. The 'c_i' are observable variable among others.

I really appreciate any help, given that limited information, without the code.

Best,
rso.
rso
 
Posts: 1
Joined: Tue Jan 15, 2013 7:23 pm

Re: Kalman filter

Postby jpfeifer » Sun Mar 10, 2013 12:26 pm

Have you tried the most recent snapshot or 4.3.2?
------------
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


Return to Dynare help

Who is online

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