R/fit_stem.R
fit_stem.Rd
Fit a stochastic epidemic model using the linear noise approximation or ordinary differential equations to approximate the latent epidemic process.
fit_stem(
stem_object,
method,
mcmc_kern,
iterations,
initialization_attempts = 500,
ess_warmup = 50,
thinning_interval = 100,
return_adapt_rec = FALSE,
return_ess_rec = FALSE,
print_progress = 0,
status_filename = NULL
)
a stochastic epidemic model object containing the dataset, model dynamics, and measurement process.
either "lna" or "ode".
MCMC transition kernel generated by a call to the
mcmc_kernel
function.
number of iterations
number of initialization attempts
number of preliminary ESS iterations for the LNA, initial conditions, and time varying parameters prior to starting MCMC
thinning interval for posterior samples, defaults to saving every 100th sample
should the MCMC samples be returned during adaptation? defaults to FALSE.
should elliptical slice sampling steps and angles be returned? defaults to FALSE
interval at which to print progress to a text file. If 0 (default) progress is not printed.
string to pre-append to status files, defaults to LNA or ODE depending on the method used.
list with posterior samples for the parameters and the latent process, along with MCMC diagnostics.