jpfeifer wrote:The current test files are at https://github.com/DynareTeam/dynare/tree/master/tests/particle
linear_model_data.mat
jpfeifer wrote:1. You need to use the unstable version.
2. Theis generated by first running https://github.com/DynareTeam/dynare/blob/master/tests/particle/linear_model.mod
- Code: Select all
linear_model_data.mat
linear_model.mod
jpfeifer wrote:The
- Code: Select all
linear_model.mod
file seems to be very outdated. I will try to look into it.
jpfeifer wrote:Attached is a working version of the model.
estimated_params;
a1, .50;
a2, .00;
a3, .70;
a4, .40;
b1, .90;
b2, .00;
b3, .80;
c1, .95;
stderr u, .05;
stderr v, .05;
stderr y, 0.01;
stderr z, 0.01;
end;
options_.particle.status = 1;
options_.particle.initialization = 1;
options_.particle.pruning = 0;
options_.particle.number_of_particles = 20000;
particle.resampling.status.systematic = 1;
options_.particle.resampling.neff_threshold = .1;
options_.gstep(1) = 1e-4;
options_.gstep(2) = .1;
options_.mode_check_neighbourhood_size = 0.05;
set_dynare_threads('local_state_space_iteration_2',3);
gstep
jpfeifer wrote:1. The first part just means we are doing maximum likelihood instead of Bayesian estimation. That can easily be changed.
2. Please have a look at the manual of the unstable version where most of the options should be (implicitly) defined. Thesets the gradient step size for numerical gradients and should usually not be altered.
- Code: Select all
gstep
estimated_params;
a1, , , , normal_pdf, 0.5, 0.05;
a2, , , , normal_pdf, 0.0, 0.05;
a3, , , ,normal_pdf, 0.7, 0.05;
a4, , , ,normal_pdf, 0.4, 0.05;
b1, , , , normal_pdf, 0.9, 0.05;
b2, , , ,normal_pdf, 0.0, 0.05;
b3, , , ,normal_pdf, 0.8, 0.05;
c1, , , , normal_pdf, 0.95, 0.05;
stderr u, , , , gamma_pdf, 0.05, 0.05;
stderr v, , , , gamma_pdf, 0.05, 0.05;
stderr y, , , ,gamma_pdf, 0.05, 0.05;
stderr z, , , ,gamma_pdf, 0.05, 0.05;
end;
mode_compute=6
mode_compute=9
number_of_particles = INTEGER
options_.particle
global_initialization.m
jpfeifer wrote:1. Yes, using a non-uniform prior is fine and running a different mode-finder is also OK.
2. In the manual to the unstable version you will see the estimation options for the particle filter after
- Code: Select all
number_of_particles = INTEGER
What the interface does is setting the respective fields of
- Code: Select all
options_.particle
As you found out, these are initialized in
- Code: Select all
global_initialization.m
Only some of these options are accessible via the estimation interface, because they are not intended for basic users to change. Instead of setting options via the interface, you can always directly set the options before the command if you know the name of these
Users browsing this forum: No registered users and 9 guests