Hi,
When I use mode_compute=5, it fails at the end on some models. The problem probably is rather simple for someone who knows the code. Here's what I know so far:
- The DsgeLikelihood_hh.m file fails because the variable LIK does not exist.
- LIK does not exist because kalman_algo=2, and it has to be 1 or 3 for LIK to be define.
- kalman_algo=2 only at of maximisation which leads me to believe the problem should have a quick fix.
Unfortunately, I don't know what kalman_algo refers to, so I don't what to meddle that far inside the code...
Thank,
Gilles
This is the error message:
---------------------------------------------------------------------------------------------------------------
??? Undefined function or variable "LIK".
Error in ==> DsgeLikelihood_hh at 225
if imag(LIK) ~= 0
Error in ==> mr_hessian at 35
[f0, ff0]=feval(func,x,varargin{:});
Error in ==> newrat at 188
[dum, gg, htol0, igg, hhg]=mr_hessian(func_hh,xparam1,flagit,htol,varargin{:});
Error in ==> dynare_estimation at 407
[xparam1,hh,gg,fval,invhess] = newrat('DsgeLikelihood',xparam1,hh,gg,igg,crit,nit,flag,gend,data);
Error in ==> mixte2p at 462
dynare_estimation(var_list_);
Error in ==> dynare at 102
evalin('base',fname) ;