Takes the output from
rt_opts()
and converts it into a list understood by
stan
.
create_rt_data(rt = rt_opts(), breakpoints = NULL, delay = 0, horizon = 0)
A list of settings defining the time-varying reproduction number
A list of options as generated by rt_opts()
defining Rt
estimation. Defaults to rt_opts()
. Set to NULL
to switch to using back
calculation rather than generating infections using Rt.
An integer vector (binary) indicating the location of breakpoints.
Numeric mean delay
Numeric, forecast horizon.
Sam Abbott
rt_settings
# default Rt data
create_rt_data()
# settings when no Rt is desired
create_rt_data(rt = NULL)
# using breakpoints
create_rt_data(rt_opts(use_breakpoints = TRUE), breakpoints = rep(1, 10))
Run the code above in your browser using DataLab