Particle filter estimation

Hello

I’m trying to estimate a nonlinear model computing the likelihood using the particle filter. I understand that for making that one just need to add the “order=2” option in the “estimation” command. However, it seems that it can’t compute the likelihood as it get stuck before it starts searching for the posterior mode. These are the warnings that appear:

Warning: Matrix is singular, close to singular or badly scaled. Results may be
inaccurate. RCOND = NaN.

In sequential_importance_particle_filter at 128
In non_linear_dsge_likelihood at 358
In initial_estimation_checks at 45
In dynare_estimation_1 at 133
In dynare_estimation at 70
In Estimacion_Traspaso_Incompleto_No_Lineal at 809
In dynare at 120

I was wondering if this has anything to do that my model is mostly entirely linear. I am only interested in a particular asymmetry (more specific, asymmetric wages adjustment costs), so I used a second order approximation for that equation. I’m almost sure that the model is fine as I have successfully estimated the linear version of the model, meaning, I estimated using the first order approximation of the wage adjustment costs and losing the asymmetric component of the model.

Anyway, i attached mi mod file and my data if it helps.

Thanks in advanced.

Miguel.
inputs_modelo.m (9.66 KB)
Estimacion_Traspaso_Incompleto_No_Lineal.mod (17.1 KB)

It looks like you have an issue of sample depletion, which could happen if your starting values are too poor. Have you tried using the parameter values from the first order estimation as starting values? Moreover, it might be necessary to use

options_.pruning before estimation.

Hi,

I have a similar problem estimating my non linear model
I always obtain

Warning: Matrix is close to singular or badly scaled.
Results may be inaccurate. RCOND = 1.916570e-016.

In sequential_importance_particle_filter at 152
In non_linear_dsge_likelihood at 321
In cmaes at 948
In dynare_estimation_1 at 539
In dynare_estimation at 84
In GS_nl at 660
In dynare at 162

I used the mode optimizer 9
I also used as initial values the values obtained from the first order estimation and i used
options_.pruning;
just before the estimation command.

Could sameone suggest any strategy to go on with my work?
Thanks
GS_nl3.mod (16.9 KB)

I forgot to attach the data

The data is still missing.

Unfortunatly its a mat extension and i cannot upload the data.
Solutions?

Using a zip-file to upload everything

Ok, now it should work.
GS_nl3.zip (11.2 KB)