Estimation problem

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.

Estimation problem

Postby margaretchang » Thu Nov 04, 2010 4:44 am

dear all,

I got the errors and i don't know why.
pls help me! Thanks so much!

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

Loading 302 observations from rationaldata.mat

??? Undefined function or variable "K".

Error in ==> kalman_filter at 78
notsteady = max(max(abs(K-oldK))) > riccati_tol;

Error in ==> DsgeLikelihood at 254
LIK = kalman_filter(T,R,Q,H,Pstar,Y,start,mf,kalman_tol,riccati_tol);

Error in ==> initial_estimation_checks at 60
[fval,cost_flag,ys,trend_coeff,info] =
DsgeLikelihood(xparam1,gend,data,data_index,number_of_observations,no_more_missing_observations);

Error in ==> dynare_estimation_1 at 334
initial_estimation_checks(xparam1,gend,data,data_index,number_of_observations,no_more_missing_observations);

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

Error in ==> rational_EST at 125
dynare_estimation(var_list_);

Error in ==> dynare at 132
evalin('base',fname) ;
Attachments
rationaldata.xls
data
(40.5 KiB) Downloaded 57 times
rational_EST.mod
dynare code
(1.26 KiB) Downloaded 274 times
margaretchang
 
Posts: 2
Joined: Thu Nov 04, 2010 4:36 am

Re: Estimation problem

Postby jpfeifer » Mon Nov 08, 2010 8:53 pm

You forgot to initialize the parameters in the parameters section. Hence, the model is not correctly solved.
------------
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: No registered users and 6 guests