Particle filter estimation

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Particle filter estimation

Postby zere00 » Tue Apr 02, 2013 12:38 am

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.
Attachments
inputs_modelo.m
Data
(9.66 KiB) Downloaded 91 times
Estimacion_Traspaso_Incompleto_No_Lineal.mod
Model
(17.11 KiB) Downloaded 144 times
zere00
 
Posts: 2
Joined: Tue Apr 02, 2013 12:15 am

Re: Particle filter estimation

Postby jpfeifer » Wed Apr 10, 2013 12:23 pm

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
Code: Select all
options_.pruning
before estimation.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Particle filter estimation

Postby federico » Wed Dec 18, 2013 4:51 pm

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
Attachments
GS_nl3.mod
(16.89 KiB) Downloaded 88 times
Last edited by federico on Wed Dec 18, 2013 4:53 pm, edited 1 time in total.
federico
 
Posts: 68
Joined: Fri Mar 30, 2012 4:46 pm

Re: Particle filter estimation

Postby federico » Wed Dec 18, 2013 4:52 pm

I forgot to attach the data
federico
 
Posts: 68
Joined: Fri Mar 30, 2012 4:46 pm

Re: Particle filter estimation

Postby jpfeifer » Fri Dec 27, 2013 8:58 am

The data is still missing.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Particle filter estimation

Postby federico » Mon Dec 30, 2013 9:37 am

Unfortunatly its a mat extension and i cannot upload the data.
Solutions?
federico
 
Posts: 68
Joined: Fri Mar 30, 2012 4:46 pm

Re: Particle filter estimation

Postby jpfeifer » Mon Dec 30, 2013 9:45 am

Using a zip-file to upload everything
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Particle filter estimation

Postby federico » Tue Dec 31, 2013 11:18 am

Ok, now it should work.
Attachments
GS_nl3.zip
(11.19 KiB) Downloaded 111 times
federico
 
Posts: 68
Joined: Fri Mar 30, 2012 4:46 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 6 guests