# Run error

**URL:** <https://forum.dynare.org/t/run-error/945>\
**Category:** Dynare v4 (legacy)\
**Created:** [2 March 2009 06:00 UTC](https://forum.dynare.org/t/run-error/945 "2009-03-02T06:00:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![liubin](https://forum.dynare.org/letter_avatar_proxy/v4/letter/l/278dde/32.png) [@liubin](https://forum.dynare.org/u/liubin)\
**Post date:** [2 March 2009 06:00 UTC](https://forum.dynare.org/t/run-error/945/1 "2009-03-02T06:00:37Z")

</div>

hi, michel,  
can you tell me how to solve the following problem?

You did not declare endogenous variables after the estimation command.  
Loading 60 observations from liu\_data.m

Initial value of the log posterior (or likelihood): -47545.8303  
??? Undefined function or variable “LIK”.

Error in ==\> DsgeLikelihood\_hh at 224  
if imag(LIK) ~= 0

Error in ==\> mr\_hessian at 35  
[f0, ff0]=feval(func,x,varargin{:});

Error in ==\> newrat at 50  
[dum, gg, htol0, igg, hhg]=mr\_hessian(func\_hh,x,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 ==\> nnliufdsge at 1527  
dynare\_estimation(var\_list\_);

Error in ==\> dynare at 102  
evalin(‘base’,fname) ;  
think a lot.

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [24 July 2017 13:29 UTC](https://forum.dynare.org/t/run-error/945/2 "2017-07-24T13:29:05Z")

</div>



---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [24 July 2017 13:29 UTC](https://forum.dynare.org/t/run-error/945/3 "2017-07-24T13:29:50Z")

</div>


