Hi Johannes,
I’m playing around with a second-order estimation and it fails. I’m pretty sure that the first-order counterpart works, and for the second-order one, it starts with the following error,
Initial value of the log posterior (or likelihood): -Inf
Iteration Func-count min f(x) Procedure
0 1 Inf
Error using chol
Matrix must be positive definite.
Error in sequential_importance_particle_filter (line 78)
StateVectorVarianceSquareRoot = chol(ReducedForm.StateVectorVariance)';%reduced_rank_cholesky(ReducedForm.StateVectorVariance)';
Error in non_linear_dsge_likelihood (line 235)
LIK = feval(DynareOptions.particle.algorithm, ReducedForm, Y, start, DynareOptions.particle, DynareOptions.threads, DynareOptions,
Model);
I was wondering what do you think could trigger the error? One thing I don’t understand is that with the same initial points the first-order ones run smoothly…
Thanks!
base_est.mod (12.9 KB)
data.csv (16.3 KB)