create_rt_data | R Documentation |
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)
rt |
A list of options as generated by |
breakpoints |
An integer vector (binary) indicating the location of breakpoints. |
delay |
Numeric mean delay |
horizon |
Numeric, forecast horizon. |
A list of settings defining the time-varying reproduction number
rt_settings
## Not run:
# 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))
# using random walk
create_rt_data(rt_opts(rw = 7), breakpoints = rep(1, 10))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.