| smesir | R Documentation |
This function fits an SIR model with local, time-varying transmission rates to epidemic incidence data (deaths) observed in one or more regions. The transmission rate in each region is modeled as a linear function of covariates plus a smooth temporal random effect drawn from a Gaussian Process distribution. The intercepts, coefficients, and even the temporal random effects from the various regions are assumed to be independent draws from global distributions centered at "global" intercept, coefficient, and temporal random effect values.
smesir( formula, data, epi_params, region_names = NULL, prior = NULL, chains = 4, iter = 50000, warmup = 0, thin = max(floor((iter - warmup)/1000), 1), min_adaptation_cycles = 5, min_samps_per_cycle = NULL, tempering_ratio = 0.2, quiet = TRUE, sr_style = NULL, seed = NULL )
formula |
Object of class "formula" |
data |
A named list containing the data with which the model will be fit.
The list should include an entry for each term in the accompanying |
epi_params |
Epidemiologic parameters which must be specified by the user (typically obtained from side-information):
|
region_names |
Vector of names of the regions studied, listed in the same order in which they are indexed in the data |
prior |
(Optional - reasonable default values are specified internally) A length 4 named list containing:
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.