The steady state contains NaN or Inf

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.

The steady state contains NaN or Inf

Postby yy1985 » Sat Feb 22, 2014 1:48 pm

Dear all:
When I run the HSTBayes.mod------which is a example in dynare, it is coming up with the same errors{I have uesd the model_diagnostics(M_,options_,oo_)、model_check to check the model,there is no problem.}:

Error in computing likelihood for initial parameter values
??? Error using ==> print_info
The steady state contains NaN or Inf

Error in ==> initial_estimation_checks at 69
print_info(info, DynareOptions.noprint)

Error in ==> dynare_estimation_1 at 169
oo_=initial_estimation_checks(objective_function,xparam1,dataset_,M_,estim_params_,options_,bayestopt_,oo_);

Error in ==> dynare_estimation at 70
dynare_estimation_1(var_list,dname);

Error in ==> HSTBayes at 205
dynare_estimation(var_list_);

Error in ==> dynare at 120
evalin('base',fname) ;

I don't know what the problem is.I am very puzzled .
Thanks!

the HSTBayes file attachment as follows:
Attachments
HSTBayes.mod.rar
(8.51 KiB) Downloaded 54 times
yy1985
 
Posts: 27
Joined: Thu Feb 13, 2014 2:56 am

Re: The steady state contains NaN or Inf

Postby jpfeifer » Sun Feb 23, 2014 5:12 pm

This is not an official Dynare file in use. The problem is that the model itself is linear, but there are constant terms. For estimation to work, you need a steady state file. I attach an updated version. But there are most likely still problems.
Attachments
HSTBayes.mod
(1.96 KiB) Downloaded 61 times
------------
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

Re: The steady state contains NaN or Inf

Postby yy1985 » Thu Mar 06, 2014 5:27 am

Dear professor pfeifer:
Yes, There is a collinear equation in HSTBayes.mod. Under your tip,I know how to solve it. Thank you very much!
Yun
yy1985
 
Posts: 27
Joined: Thu Feb 13, 2014 2:56 am


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 6 guests