Release of Dynare 4.2.5

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.

Release of Dynare 4.2.5

Postby SébastienVillemot » Fri Mar 16, 2012 5:02 pm

Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: Release of Dynare 4.2.5

Postby anti » Mon Apr 02, 2012 1:31 pm

After updating from 4.2.4 to 4.2.5 I receive the error message below with a file that used to run fine under the old version. Does anyone have an idea how to fix this?
Thanks,
Andreas


Error using inverse_gamma_specification (line 121)
inverse_gamma_specification:: Failed in solving for the hyperparameters!

Error in set_prior (line 224)
[bayestopt_.p6(k(i)),bayestopt_.p7(k(i))] = ...

Error in dynare_estimation_init (line 124)
[xparam1,estim_params_,bayestopt_,lb,ub,M_] = set_prior(estim_params_,M_,options_);

Error in dynare_estimation_1 (line 37)
[data,rawdata,xparam1] = dynare_estimation_init(var_list_);

Error in dynare_estimation (line 62)
dynare_estimation_1(var_list,varargin{:});

Error in ad4 (line 301)
dynare_estimation(var_list_);

Error in dynare (line 120)
evalin('base',fname) ;
anti
 
Posts: 1
Joined: Mon Apr 02, 2012 1:24 pm

Re: Release of Dynare 4.2.5

Postby MichelJuillard » Fri Apr 06, 2012 1:34 pm

This occurs when the variance of an inverse gamma prior is too small or too large in comparison with the mean. In order to find the natural parameters of the inverse gamma distribution from the mean and variance, Dynare solves a non-linear problem. In earlier version, we didn't check the accuracy of the result and let pass inaccurate solutions
In version 4.2.5 the accuracy of this computation is checked and if the result is inaccurate, an error is sent.
The solution is to modify the ratio mean/variance in the prior. Remember that it is often better to calibrate a parameter than to use a very small variance for a prior. Note also, that using in infinite variance for the inverse gamma pdf rahter than a large variance makes the above computation easier.
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 4 guests

cron