Problem with linear 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.

Problem with linear model

Postby cjcostaj » Sat Jan 18, 2014 6:49 pm

Hi,
I'm trying to simulate the attached model and the following error message appears:

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

Error in ==> simult at 77
chol_S = chol(DynareModel.Sigma_e(i_exo_var,i_exo_var));

Error in ==> stoch_simul at 139
[ys, oo_] = simult(y0,oo_.dr,M_,options_,oo_);

Error in ==> Unburdening at 344
info = stoch_simul(var_list_);

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

Could anyone help me?
Attachments
Unburdening.mod
(5.67 KiB) Downloaded 52 times
cjcostaj
 
Posts: 22
Joined: Sun Aug 26, 2012 6:26 pm

Re: Problem with linear model

Postby jpfeifer » Sun Jan 19, 2014 2:24 pm

The problem is that your first covariance matrix implies a perfect correlation between two shocks. This obviously makes the covariance matrix singular, leading to the crash in the Cholesky decomposition.
------------
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

Re: Problem with linear model

Postby cjcostaj » Sun Jan 19, 2014 5:48 pm

Johannes,

Thank you very much for the help.

regards
cjcostaj
 
Posts: 22
Joined: Sun Aug 26, 2012 6:26 pm


Return to Dynare help

Who is online

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