running error with New Keynesian Model

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.

running error with New Keynesian Model

Postby marvinsyrene » Thu Aug 19, 2010 8:46 pm

I am estiamting a pretty standard new Keynesian monetary model with US data, every time when I specify three observables:y pai i, there is a error message:
??? Error using ==> chol
Matrix must be positive definite.

Error in ==> metropolis_hastings_initialization at 52
d = chol(vv);

everything works fine with two observables: y pai.
this is data for output, pai and i.
output is detrended log, multiplied by 400.
pai is the log difference of CPI, multiplied,
i is the fed fund rate
Attachments
YBook2.xls
the data file
(24 KiB) Downloaded 75 times
inf_inertia.mod
the mod file
(1.78 KiB) Downloaded 74 times
marvinsyrene
 
Posts: 6
Joined: Thu Jun 10, 2010 12:05 am

Re: running error with New Keynesian Model

Postby jpfeifer » Fri Aug 20, 2010 6:43 am

Hi, use mode_compute=6. There are a lot of posts dealing with this problem. See also the Wiki 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 5 guests