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

i am trying to replicate the Leeper,Plante&Traum(2010)“Dynamics of fiscal financing in the United States” with complementarity government spending and government investment. but i found the messages…
??? Error using ==> chol
Matrix must be positive definite.

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

Error in ==> random_walk_metropolis_hastings at 69
ix2, ilogpo2, ModelName, MhDirectoryName, fblck, fline, npar,
nblck, nruns, NewFile, MAX_nruns, d ] = …

Error in ==> dynare_estimation_1 at 909

Error in ==> dynare_estimation at 70

Error in ==> gsm at 457

Error in ==> dynare at 120
evalin(‘base’,fname) ;
gsm.mod (4.93 KB)
data.m (7.37 KB)

Hi, could you solve this problem? If yes, how?

Search the forum. There are dozens of posts on this. There are many different reasons why this can happen. Most of the time is has to do with wrong data treatment.