adapt_PsMCMC | R Documentation |
Adapts proposal parameters of Pseudo-Marginal MCMC scheme to give near-optimal performance.
adapt_PsMCMC( init, epiModel, obsFrame, epiSample, I0, alpha, logPrior, lambda0, V0, delta = 0.05, N, noIts )
init |
initial value of epidemic parameters |
epiModel |
epidemic model |
obsFrame |
Generator function for observational model. |
epiSample |
Observed epidemic data. |
I0 |
Initial state of the epidemic, which assumed to be known. |
alpha |
Observational parameters to be passed on to the log-likelihood function
generated by |
logPrior |
Functions which calculate log-density of the assumed priors of the epidemic parameters. |
lambda0 |
Initial value of the Random Walk Metropolis (RWM) proposal scale parameter |
V0 |
A square matrix containing the initial covariance values for RWM proposal. Shape of matrix should match the length of the init parameter. |
delta |
Probability that the initial proposal parameters are used as opposed to using the current adapted proposal parameters. |
N |
Number of particles to be used in Importance Sample Estimate of posterior. This
can be optimised using |
noIts |
Number of iterations of MCMC sampler scheme to carry out. |
A list of the adapted proposal parameters.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.