| bayes_smc | R Documentation |
Runs a tempered SMC sampler over the DSGE parameter space. At each
tempering stage particles are reweighted, optionally resampled, and
mutated by random-walk Metropolis kernels. More robust than vanilla
RWMH for posteriors with multiple modes or strong banana-shaped
nonlinearities; the standard alternative to bayes_dsge.
bayes_smc(
model,
data,
priors,
n_particles = 500L,
n_phi = 30L,
phi_schedule = c("linear", "quadratic"),
n_mh = 1L,
ess_threshold = 0.5,
scale = NULL,
seed = NULL
)
model |
A |
data |
Matrix or data frame of observed variables. |
priors |
Named list of |
n_particles |
Integer. Number of particles. Default 500. |
n_phi |
Integer. Number of tempering stages. Default 30. |
phi_schedule |
Character. Tempering schedule shape.
|
n_mh |
Integer. Number of MH mutation steps per tempering stage. Default 1. |
ess_threshold |
Numeric. Resample when effective sample size
falls below |
scale |
Numeric. Mutation proposal scale multiplier on the
particle-cloud Cholesky factor. Default |
seed |
Optional integer seed. |
An object of class c("dsge_smc","dsge_bayes") with the
same field layout as bayes_dsge(). Key fields:
posteriorArray (n_particles x n_par x 1) of final particles, treated as posterior draws.
log_marg_likLog-marginal-likelihood estimate from the tempering recursion.
ess_pathEffective sample size at each stage.
acceptance_pathMH acceptance rate at each stage.
Chopin, N. (2002). A sequential particle filter method for static models. Biometrika, 89(3), 539-552.
Herbst, E. and Schorfheide, F. (2014). Sequential Monte Carlo sampling for DSGE models. Journal of Applied Econometrics, 29(7), 1073-1098.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.