R/posterior_latents.R
posterior_latent.Rd
Draws samples from one of a number of unobserved time series using the posterior parameter draws from the passed object. Can retrieve posterior estimate of the reproduction number over time (unadjusted or adjusted), the daily new infections, or the total "infectiousness" of the population over time.
posterior_latent(object, ...) # S3 method for epimodel posterior_latent( object, newdata = NULL, series = c("Rt", "Rt_unadj", "infections"), draws = NULL, seed = NULL, ... )
object | A fitted model object returned by |
---|---|
... | Not used. |
newdata | If provided, the original |
series | Type of latent series to return. |
draws | Number of posterior draws to use. Defaults to the number of parameter draws in the fitted model. |
seed | An optional seed. |
A named list with draws of the series, and vectors giving the corresponding dates and population.