tidy_seir: Generate a 'tidy' data frame of summarized projection output

Description Usage Arguments Details Value

View source: R/tidy-plot.R

Description

Returns a variety of quantiles and means of the posterior predictive distribution and the expected case numbers.

Usage

1
tidy_seir(x, resample_y_rep = 10, data_type_names = NULL)

Arguments

x

Output from project_seir().

resample_y_rep

The number of times to resample from the observation distribution. Currently only set up for NB2 models.

data_type_names

An optional named character vector to translate the data type numbers into names. E.g. c("Reported cases" = 1, "Hospitalizations" = 2).

Details

See project_seir() for an example.

Value

A data frame


seananderson/covidseir documentation built on June 3, 2021, 6:49 a.m.