Description Usage Arguments Value Author(s) References
Creates diagnoistic plots from runs of the particle Metropolis-Hastings algorithm.
1 2 | makePlotsParticleMetropolisHastingsSVModel(y, res, noBurnInIterations,
noIterations, nPlot)
|
y |
Observations from the model for t=1,...,T. |
res |
The output from a run of particleMetropolisHastings, particleMetropolisHastingsSVmodel or particleMetropolisHastingsSVmodelReparameterised. |
noBurnInIterations |
The number of burn-in iterations in the PMH algorithm. Must be smaller than noIterations. |
noIterations |
The number of iterations in the PMH algorithm. |
nPlot |
Number of steps in the Markov chain to plot. |
The function returns plots similar to the ones in the reference as well as the estimate of the integrated autocorrelation time for each parameter.
Johan Dahlin uni@johandahlin.com
Dahlin, J. & Schon, T. B. "Getting Started with Particle Metropolis-Hastings for Inference in Nonlinear Dynamical Models." Journal of Statistical Software, Code Snippets, 88(2): 1–41, 2019.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.