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)
Arguments
- rt
A list of options as generated by
rt_opts()
defining Rt estimation. Defaults tort_opts()
. Set toNULL
to switch to using back calculation rather than generating infections using Rt.- breakpoints
An integer vector (binary) indicating the location of breakpoints.
- delay
Numeric mean delay
- horizon
Numeric, forecast horizon.