nobody know the question?

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.

nobody know the question?

Postby cassloufeng » Sat Nov 28, 2009 12:55 pm

when I am trying to replicate the Bayesian estimation with the example of RBC_Est which is done in the User Guide version beta (chapter 5). I get the error information as following :
??? 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 ==> RBC_Est at 132
dynare_estimation(var_list_);
Error in ==> dynare at 102
evalin('base',fname) ;

Could someone tell me the reason? (I did not do any change with the code; the softwares which I use are dynare 4.04 and Matlab R2008a ;the attachments are the code of RBC_Est.mod and the data)
Thank you in advance.

david
Attachments
simuldataRBC.m
(141.13 KiB) Downloaded 54 times
RBC_Est.mod
(808 Bytes) Downloaded 56 times
cassloufeng
 
Posts: 1
Joined: Sat Oct 17, 2009 1:56 am

Re: nobody know the question?

Postby pakocica » Sat Nov 28, 2009 4:49 pm

Dear David,

best you can do is to search for "chol" in this forum. You will find out many answers for your question.

Pavel
pakocica
 
Posts: 46
Joined: Fri Nov 27, 2009 6:42 pm
Location: Taiwan (come from Prague)

Re: nobody know the question?

Postby davidforum » Sun Nov 29, 2009 1:45 pm

Thank you ,Dear pavel, I will do it according to you advice.
davidforum
 
Posts: 3
Joined: Mon Nov 09, 2009 10:58 am


Return to Dynare help

Who is online

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