What i can do in this error

Error using chol
Matrix must be positive definite.
Error in posterior_sampler_initialization (line 84)
d = chol(vv);
Error in posterior_sampler (line 60)
posterior_sampler_initialization(TargetFun, xparam1, vv,
Error in dynare_estimation_1 (line 465)
Error in dynare_estimation (line 105)
Error in fs_est.driver (line 205)
Error in dynare (line 288)
evalin(‘base’,[fname ‘.driver’]) ;

model_est.txt (743 Bytes)

You are missing the data file.

I have data file 29 observation and i save it as data.mat

But you did not upload it here.

data.mat (359 Bytes)

Your data has an unhandled trend.