The steady state contains NaN or Inf - Estimation Error

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 - Estimation Error

Postby fernando.fernandes » Mon Nov 17, 2014 5:23 pm

Good Afternoon,

I'm getting the following error messages while trying to estimate the attached DSGE model (Chorinho**), for the Brazilian Economy:

Error in computing likelihood for initial parameter values
Error using print_info (line 80)
The steady state contains NaN or Inf
Error in print_info (line 80)
error('The steady state contains 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 chorinho_table (line 576)
dynare_estimation(var_list_);
Error in dynare (line 180)
evalin('base',fname) ;

By the way, this is the first time I have an error on Dynare. So I'm pretty lost on debugging it. Also, this is the first time that I try to use non-stationary variables to infer the model.

I suppose I may be missing something, but after days debugging the attached code, I can't find it. Hope someone could help me out.
I also tried to contact the Author to provide the original code, but I had no success on it.

I would be very glad to get any help or hint you can give me.

Best Regards,

Fernando Fernandes

** http://eesp.fgv.br/sites/eesp.fgv.br/fi ... rtigo2.pdf (PDF File of the Original Model, which I'm trying to implement over Dynare)
Attachments
chorinho_data.xls
Dataset
(45 KiB) Downloaded 70 times
chorinho_table.mod
General File
(347 Bytes) Downloaded 57 times
chorinho_model_defs.txt
Equation Definitions
(2.48 KiB) Downloaded 61 times
chorinho_estimation_defs.txt
Parameter Estimation Definitions
(2.26 KiB) Downloaded 56 times
chorinho_defs.mod
General Definitions
(681 Bytes) Downloaded 57 times
fernando.fernandes
 
Posts: 8
Joined: Mon Nov 17, 2014 5:09 pm

Re: The steady state contains NaN or Inf - Estimation Error

Postby jpfeifer » Mon Nov 17, 2014 7:50 pm

Before moving to estimation, make sure a calibrated version of the model solves. See
Remark 2 (Using stoch_simul before Estimation)
Remark 15 (initval vs. steady_state_model vs. steadystate-file)
in
Pfeifer(2013): "A Guide to Specifying Observation Equations for the Estimation of DSGE Models" https://sites.google.com/site/pfeiferecon/Pfeifer_2013_Observation_Equations.pdf.
------------
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 - Estimation Error

Postby fernando.fernandes » Mon Nov 17, 2014 8:04 pm

Thank you for your hint.
I'll try to run a first version of the model, using the calibrated parameters presented on the paper, and see if the model solves, in order to check if everything is okay.

Then, I will let you know of anything :)

Kind Regards,

Fernando
fernando.fernandes
 
Posts: 8
Joined: Mon Nov 17, 2014 5:09 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests

cron