Takes the output from
rt_opts() and converts it into a list understood by
stan.
Usage
create_rt_data(
rt = rt_opts(),
breakpoints = NULL,
delay = 0,
horizon = 0,
data = NULL
)Arguments
- rt
A list of options as generated by
rt_opts()defining Rt estimation. Defaults tort_opts(). To generate new infections using the non-mechanistic model instead of the renewal equation model, usert = NULL. The non-mechanistic model internally uses the settingrt = rt_opts(use_rt = FALSE, future = "project", gp_on = "R0").- breakpoints
An integer vector (binary) indicating the location of breakpoints.
- delay
Numeric mean delay
- horizon
Numeric, forecast horizon.
- data
A
data.tableof case data (optional). Used for validation checks.
