Estimation DSGE model with Dynare HELP!!!!

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.

Estimation DSGE model with Dynare HELP!!!!

Postby Chimai » Wed May 09, 2012 8:25 am

Dear all,
I am using Dynare to estimate an economic model with fiscal policy. I followed chapter 5 in Dynare User guide but my model is more complicated with two kinds of households, which consumptions and labors are defined as Co, No, and Cr, Nr. And there are government spending shock and tax shock. But now I meet this problem as follow:
Log data density [Laplace approximation] is -25689.067911.

??? 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 58
[ ix2, ilogpo2, ModelName, MhDirectoryName, fblck, fline, npar, nblck, nruns,
NewFile, MAX_nruns, d ] = ...

Error in ==> dynare_estimation_1 at 871
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 ==> example5 at 159
dynare_estimation(var_list_);

Error in ==> dynare at 120
evalin('base',fname) ;
I am a beginner of Dynare and I don't know how to solve this problem. I have to hand out my thesis next week. I really need your help and I appreciate your help!
Thank you very much!
Best,
Attachments
data3.m
this is my data file
(2.78 KiB) Downloaded 231 times
example5.mod
attach my model here
(1.07 KiB) Downloaded 300 times
Chimai
 
Posts: 4
Joined: Tue May 08, 2012 8:06 am

Re: Estimation DSGE model with Dynare HELP!!!!

Postby jpfeifer » Thu May 10, 2012 10:52 am

Try using mode_compute=6. Search the forum for the numerous posts on this issue.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare contributions and examples

Who is online

Users browsing this forum: No registered users and 2 guests