Ireland (2004) example dynare file

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.

Ireland (2004) example dynare file

Postby hakeru7 » Wed May 24, 2017 9:27 pm

Hi everyone,

I'm looking at the Ireland 2004 replication mod file from https://github.com/johannespfeifer/dsge_mod

It seems Johannes has the file set to simulation with the estimation commented out. If I comment out the stoch_simul and comment the estimation procedure back in, I can't seem to get it to run. Specifically with errors in computing likelihood for initial parameter values. Can anyone get the estimation in this example to work?

Thanks,
J
hakeru7
 
Posts: 17
Joined: Sun Apr 19, 2015 4:10 am

Re: Ireland (2004) example dynare file

Postby jpfeifer » Thu May 25, 2017 5:17 pm

That's strange. I can run the example with estimation. What code exactly are you using? And which Dynare version?
------------
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: Ireland (2004) example dynare file

Postby hakeru7 » Thu May 25, 2017 5:56 pm

I'm running the file attached here, where I've just deleted the plots at the end, commented out 'stoch_simul' and commented back in the estimation portion.

Using Dynare 4.4.3, I get the error quoted below.

Also, while I've got your attention, I think the current 'Ireland_2004.mod' file on your Github has a typo on line 172 in the estimated params block (omega isn't specified and I couldn't run it as is)

STEADY: numerical initial values or parameters incompatible with the following equations
1 2 4 5 6 8

Check whether your model in truly linear
STEADY: numerical initial values or parameters incompatible with the following equations
1 2 4 5 6 8 10 11 12 13

Check whether your model in truly linear
STEADY: numerical initial values or parameters incompatible with the following equations
1 2 4 5 6 8 10 11 12 13

Check whether your model in truly linear
Error in computing likelihood for initial parameter values

ESTIMATION_CHECKS: There was an error in computing the likelihood for initial parameter values.
ESTIMATION_CHECKS: You should try using the calibrated version of the model as starting values. To do
ESTIMATION_CHECKS: this, add an empty estimated_params_init-block with use_calibration option immediately before the estimation
ESTIMATION_CHECKS: command (and after the estimated_params-block so that it does not get overwritten):


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 Ireland_2004_est (line 224)
dynare_estimation(var_list_);

Error in dynare (line 180)
evalin('base',fname) ;
Attachments
Ireland_2004_est.mod
(6.29 KiB) Downloaded 67 times
hakeru7
 
Posts: 17
Joined: Sun Apr 19, 2015 4:10 am

Re: Ireland (2004) example dynare file

Postby jpfeifer » Thu May 25, 2017 7:02 pm

The mod-file is fine as is, but you need to use the unstable version/4.5. See the disclaimer at https://github.com/JohannesPfeifer/DSGE_mod
Compatibility

These mod-files have been tested against the current unstable version, to be released as Dynare 4.5. Compatibility with earlier versions is not guaranteed.
------------
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


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 6 guests