Bayesian estimation: tolerance

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.

Bayesian estimation: tolerance

Postby tanya » Thu Oct 02, 2008 1:53 pm

Deal all

How can I change the default tolerance in the main algorithm of Bayesian estimation?

I have an iterative block INSIDE the mod-file with extremely slow convergence to, say, E^-10. I cannot optimise it further than it is currently done. As a result, computing posterior distributions takes ages. I need to decrease the default tolerance to, say E^-6, or something less that internal convergence tolerance. I use MATLAB. I undertsand Dynare uses some standard MATLAB minsearch or something like this, how can I change the default parameters in the correct place?

Many thanks
Tanya
tanya
 
Posts: 37
Joined: Tue Sep 12, 2006 6:41 pm

Postby bigbigben » Fri Oct 03, 2008 4:04 pm

Hi, Tanya:
If you use Dynare, the default optimizer is csminwel, not any built-in function in Matlab. Try add the following lines in your mod file before the estimation line

options_.dynatol=1e-5;
options_.cutoff=1e-8;

If you use fminunc or something else in Matlab, add the line before using the minimizing algorithm

options = optimset('TolFun',1e-5,'TolX',1e-3);
bigbigben
 
Posts: 171
Joined: Sun May 28, 2006 1:19 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 11 guests