Why the code in Chapter 6 of User Guide does not work?

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.

Why the code in Chapter 6 of User Guide does not work?

Postby ecyng » Fri May 14, 2010 1:30 am

When I run the code in Chapter 6 of User Guide (fs2000ns.mod), I got the following error:

??? 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 1057
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 ==> fs2000ns at 175
dynare_estimation(var_list_);

Error in ==> dynare at 132
evalin('base',fname) ;

I use the original codes from the User Guide. Please advise how to fix it.

Thanks,
Eric
ecyng
 
Posts: 5
Joined: Sun Apr 25, 2010 9:12 pm

Re: Why the code in Chapter 6 of User Guide does not work?

Postby StephaneAdjemian » Fri May 14, 2010 8:15 am

Look at this thread.
Stéphane.
Stéphane Adjemian
Université du Maine, GAINS and DynareTeam
https://stepan.adjemian.eu
StephaneAdjemian
 
Posts: 429
Joined: Wed Jan 05, 2005 4:24 pm
Location: Paris, France.


Return to Dynare help

Who is online

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