Example of estimation working in 4.0.0 but not 4.0.3

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.

Example of estimation working in 4.0.0 but not 4.0.3

Postby doctorwes » Thu Apr 09, 2009 7:31 pm

I am trying to estimate a simple model. Estimation runs successfully in 4.0.0, but 4.0.3 gives me the attached error message. What would have changed between versions? I've attached the .mod file and the data file. Thank you in advance if you can help!

Code: Select all
??? Error using ==> chol
Matrix must be positive definite.

Error in ==> metropolis_hastings_initialization at 52
d = chol(vv);

Error in ==> random_walk_metropolis_hastings at 43
[ ix2, ilogpo2, ModelName, MhDirectoryName, fblck, fline, npar, nblck, nruns, NewFile, MAX_nruns, d ] = ...

Error in ==> dynare_estimation_1 at 940
        feval(options_.posterior_sampling_method,'DsgeLikelihood',options_.proposal_distribution,xparam1,invhess,bounds,gend,data);

Error in ==> dynare_estimation at 62
    dynare_estimation_1(var_list,varargin{:});

Error in ==> zero_bound at 206
dynare_estimation(var_list_);

Error in ==> dynare at 102
evalin('base',fname) ;
Attachments
data_feb1.m
(2.52 KiB) Downloaded 73 times
zero_bound.mod
(1.67 KiB) Downloaded 72 times
doctorwes
 
Posts: 6
Joined: Thu Dec 27, 2007 3:49 pm

Re: Example of estimation working in 4.0.0 but not 4.0.3

Postby MichelJuillard » Sat Apr 11, 2009 7:58 am

Version 4.0.3 is more discriminant with problems in the Hessian matrix before doing Metropolis. Try to use mode_compute=6. It takes much longer, but will deliver a positive definite covariance matrix that will allow you to continue with metropolis

Best

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Re: Example of estimation working in 4.0.0 but not 4.0.3

Postby doctorwes » Mon Apr 13, 2009 5:06 pm

Thank you! This seems to work perfectly. I was not aware of mode_compute=6, but I now see it was added by Stephane some time ago. I will use it in the future (and perhaps request a faster computer).
doctorwes
 
Posts: 6
Joined: Thu Dec 27, 2007 3:49 pm


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 11 guests