posterior_rt: Generic function for getting posterior draws of the...

Description Usage Arguments Value

View source: R/posterior_latents.R

Description

Generic function for getting posterior draws of the time-varying reproduction rates

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
posterior_rt(object, ...)

## S3 method for class 'epimodel'
posterior_rt(
  object,
  newdata = NULL,
  draws = NULL,
  seed = NULL,
  adjusted = TRUE,
  ...
)

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.

adjusted

Flag whether to return the adjusted reproduction rates. Defaults to TRUE.

Value

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


epidemia documentation built on Oct. 25, 2021, 9:09 a.m.