Page 1 of 1

Ireland (2004) example dynare file

PostPosted: Wed May 24, 2017 9:27 pm
by hakeru7
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

Re: Ireland (2004) example dynare file

PostPosted: Thu May 25, 2017 5:17 pm
by jpfeifer
That's strange. I can run the example with estimation. What code exactly are you using? And which Dynare version?

Re: Ireland (2004) example dynare file

PostPosted: Thu May 25, 2017 5:56 pm
by hakeru7
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) ;

Re: Ireland (2004) example dynare file

PostPosted: Thu May 25, 2017 7:02 pm
by jpfeifer
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.