Learn R Programming

epidemia (version 1.0.0)

posterior_infectious: Generic function for getting posterior draws of total infectiousness over time

Description

Generic function for getting posterior draws of total infectiousness over time

Usage

posterior_infectious(object, ...)

# S3 method for epimodel posterior_infectious(object, newdata = NULL, draws = NULL, seed = NULL, ...)

Arguments

object

A fitted model object returned by epim. See epimodel-objects.

...

Not used.

newdata

If provided, the original data used in object is overridden. Useful both for counterfactual and prediction analysis

draws

Number of posterior draws to use. Defaults to the number of parameter draws in the fitted model.

seed

An optional seed.

Value

A named list with draws of the series, and vectors giving the corresponding dates and population.