Takes the output of
stan_opts()
and converts it into a list understood by
stan
. Internally calls the other create_
family of functions to
construct a single list for input into stan with all data required present.
create_stan_data(
reported_cases,
seeding_time,
rt,
gp,
obs,
horizon,
backcalc,
shifted_cases
)
A list of stan data
A data frame of confirmed cases (confirm) by date (date). confirm must be integer and date must be in date format.
Integer; seeding time, usually obtained using
get_seeding_time()
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.
A list of options as generated by gp_opts()
to define the
Gaussian process. Defaults to gp_opts()
.Set to NULL to disable the
Gaussian process.
A list of options as generated by obs_opts()
defining the
observation model. Defaults to obs_opts()
.
Numeric, forecast horizon.
A list of options as generated by backcalc_opts()
to
define the back calculation. Defaults to backcalc_opts()
.
A dataframe of delay shifted cases
Sam Abbott
Sebastian Funk