S3 generic for fitted models from constructed model object
Examples
if (FALSE) { # \dontrun{
mod <- construct_model(
method = random_walk(),
pathogen_structure = single(
case_timeseries = sarscov2$cases,
time = sarscov2$date))
fit <- fit_model(mod)
# or specify additional mcmc parameters
fit <- fit_model(
mod, iter = 3000, warmup = 2000, chains = 4
)
} # }