Page 1 of 1

A Question on Bayesian Estimation

PostPosted: Mon Aug 18, 2014 10:57 pm
by Butree
Hi, guys,
when I tried to estimate a model, the following information is printed in screen:

??? Error using ==> chol
Matrix must be positive definite.

Error in ==> gmhmaxlik at 197
dd = transpose(chol(CovJump));

Error in ==> dynare_estimation_1 at 437
[xparam1,PostVar,Scale,PostMean] = ...

Error in ==> dynare_estimation at 89
dynare_estimation_1(var_list,dname);

Error in ==> NewModel at 606
dynare_estimation(var_list_);

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

Also, the progress bar of 'Tuning of scale parameter" just get stopped.

Is there anything wrong with the model?

Thanks

Re: A Question on Bayesian Estimation

PostPosted: Tue Aug 19, 2014 8:55 am
by jpfeifer
Search the forum, there must be dozens of posts on this. The most common problem is that the data treatment does not match the observables defined in the model. See Pfeifer(2013): "A Guide to Specifying Observation Equations for the Estimation of DSGE Models" https://sites.google.com/site/pfeiferecon/Pfeifer_2013_Observation_Equations.pdf

Re: A Question on Bayesian Estimation

PostPosted: Tue Aug 19, 2014 11:50 pm
by Butree
Hi, Professor Pfeifer,
Thanks for your answer; I've fixed the problem now and got the estimation result. A question relevant to the estimation results is that, there're two estimation results, the first is RESULTS from POSTERIOR MAXIMIZATION (which comes before MCMC) and the second one is ESTIMATION RESULTS (which is based on MCMC); in the table of my paper, I should report the second result rather than the first one, is it correct?

Thanks again for your kindly help.

Re: A Question on Bayesian Estimation

PostPosted: Wed Aug 20, 2014 6:57 am
by jpfeifer
Yes, papers doing Bayesian estimation report the parameters from posterior sampling via MCMC

Re: A Question on Bayesian Estimation

PostPosted: Wed Aug 20, 2014 2:49 pm
by Butree
Thanks a lot, Professor Pfeifer!