I’m a new for dynare and I need help. The attachment is my program and data, I donot know why this error happens. deleverage1 and deleverage0425news are the right datafile and mod.
It seems that when I try an estimate one of the parameters in particular I generate the following error message:
Log data density [Laplace approximation] is NaN.
Error using chol
Matrix must be positive definite with real diagonal.
Error in posterior_sampler_initialization (line 84)
d = chol(vv);
Error in posterior_sampler (line 59)
[ ix2, ilogpo2, ModelName, MetropolisFolder, fblck, fline, npar, nblck, nruns, NewFile, MAX_nruns, d, bayestopt_] = …
Error in dynare_estimation_1 (line 447)
Error in dynare_estimation (line 105)
Error in deleverage0424news (line 517)
Error in dynare (line 223)
I hope my questions make sense, and any guidance on what could be causing this error would be much appreciated.