# Error in estimation

**URL:** <https://forum.dynare.org/t/error-in-estimation/10841>\
**Category:** Estimation\
**Created:** [9 October 2017 10:47 UTC](https://forum.dynare.org/t/error-in-estimation/10841 "2017-10-09T10:47:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![peter](https://forum.dynare.org/letter_avatar_proxy/v4/letter/p/278dde/32.png) [@peter](https://forum.dynare.org/u/peter)\
**Post date:** [9 October 2017 10:47 UTC](https://forum.dynare.org/t/error-in-estimation/10841/1 "2017-10-09T10:47:55Z")

</div>

Hello everyone

I estimate my model, after computing the steady state successfully, then Dynare reports the following error

"Error using print\_info (line 84)  
Some updated params contain NaN or Inf  
Error in print\_info (line 84)  
error(‘Some updated params contain NaN or Inf’)  
Error in initial\_estimation\_checks (line 69)  
print\_info(info, DynareOptions.noprint, DynareOptions)  
Error in dynare\_estimation\_1 (line 179)  
oo\_ = initial\_estimation\_checks(objective\_function,xparam1,dataset\_,M\_,estim\_params\_,options\_,bayestopt\_,oo\_);  
Error in dynare\_estimation (line 89)  
dynare\_estimation\_1(var\_list,dname);  
Error in ALEstim\_pet\_modi (line 936)  
dynare\_estimation(var\_list\_);  
Error in dynare (line 180)  
evalin(‘base’,fname) ;  
Error in Main (line 3)  
dynare ALEstim\_pet\_modi "

Can anyone help me to detect this problem? What kind of error is? how to overcome it  
my code is here [q6.zip](https://forum.dynare.org/uploads/default/original/2X/d/dc0e28205188ca72e0721ea48ba5c2bf103f2568.zip) (30.2 KB)

Best wishes

---

<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:** [11 October 2017 07:52 UTC](https://forum.dynare.org/t/error-in-estimation/10841/2 "2017-10-11T07:52:39Z")

</div>

A developmental version returns:

> dynare\_estimation\_init:: Some of the parameters are NaN (cdfbar, csbar, epspolicy, epsz, gammadc, gammadi, gammapi2, gammapi3, gammaq2, gammax, gammay2, gammay3, idfbar, isbar, Pii1, Pii2, Pii3, Piim, Piimc, Piimi, PiiTot, eta12, eta13, eta14, eta3bar, rhotauy, rhotauc, rhog, rhopistar, rhoystar, rhoRstar)
> 
> dynare\_estimation\_init:: Some of the parameters are Inf (gammacmc, gammaimi)

So there is a problem with your steady state file for the prior mean/the starting values

---

<div class="post-metadata">

**Author:** ![peter](https://forum.dynare.org/letter_avatar_proxy/v4/letter/p/278dde/32.png) [@peter](https://forum.dynare.org/u/peter)\
**Post date:** [11 October 2017 09:21 UTC](https://forum.dynare.org/t/error-in-estimation/10841/3 "2017-10-11T09:21:43Z")

</div>

Dear Prof. @jpfeifer

I got it, I fix it and now it works so well

Thank you a lot for detecting the problem in my steady state file

With best wishes
