could anyone help me with this dynare mod file

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.

could anyone help me with this dynare mod file

Postby blackeif » Sun Sep 09, 2012 10:14 am

i write a dynare file as follows. the problem is when i use mode_compute=4 to estimate the code, the error is :

??? 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 ==> Liu_replica at 296
dynare_estimation(var_list_);

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



could anyone figure out the reason? and another thing,when i use mode_compute=6 to estimate the code,the code can be estimated,but the result is not same every time. what is the different betweenmode_compute=6 and mode_compute=4?
Attachments
data.m
(5.2 KiB) Downloaded 43 times
code.mod
(3.04 KiB) Downloaded 47 times
blackeif
 
Posts: 31
Joined: Mon Apr 27, 2009 5:19 pm

Re: could anyone help me with this dynare mod file

Postby jpfeifer » Mon Sep 10, 2012 9:00 am

There are dozens of post on this issue. See also
Code: Select all
http://www.dynare.org/DynareWiki/MonteCarloOptimization
------------
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 help

Who is online

Users browsing this forum: No registered users and 4 guests