Does anyone know the best way to decipher error messages in dynare? Currently I am getting the message below and it's been tough to identify the problem.
***********************************************************************
NOTE:
The problem materializes in the "__static.m" file.
Through debugging in Matlab I have determined that the variable T166 is empty and being multiplied by y(24) which is a vector of zeros which gives an empty vector lhs. rhs is [1X1] NAN. Thus the error.
lhs =y(24)*T166;
rhs =T56*T159*y(30)*params(3);
Most residuals are NAN because a majority of "T" variables are NAN, Inf, zero or 1.
Does anyone know what this might mean?
*****************************************************************
ACTUAL ERROR MESSAGE
??? In an assignment A(I) = B, the number of elements in B and
I must be the same.
Error in ==> Full4_static at 97
residual(14)= lhs-rhs;
Error in ==> dynare_solve at 83
[fvec,fjac] = feval(func,x,varargin{:});
Error in ==> evaluate_steady_state at 66
[ys,check] = dynare_solve([M.fname '_static'],...
Error in ==> dynare_estimation_init at 341
oo_.steady_state =
evaluate_steady_state(oo_.steady_state,M,options_,oo_,steadystate_check_flag);
Error in ==> dynare_estimation_1 at 59
[dataset_,xparam1, M_, options_, oo_, estim_params_,bayestopt_] =
dynare_estimation_init(var_list_, dname, [], M_, options_, oo_,
estim_params_, bayestopt_);
Error in ==> dynare_estimation at 70
dynare_estimation_1(var_list,dname);
Error in ==> Full4 at 859
dynare_estimation(var_list_);
Error in ==> dynare at 120
evalin('base',fname) ;