create_stan_data {EpiNow2} | R Documentation |
Create Stan Data Required for estimate_infections
Description
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.
Usage
create_stan_data(
reported_cases,
seeding_time,
rt,
gp,
obs,
horizon,
backcalc,
shifted_cases
)
Arguments
reported_cases |
A data frame of confirmed cases (confirm) by date (date). confirm must be integer and date must be in date format. |
seeding_time |
Integer; seeding time, usually obtained using
|
rt |
A list of options as generated by |
gp |
A list of options as generated by |
obs |
A list of options as generated by |
horizon |
Numeric, forecast horizon. |
backcalc |
A list of options as generated by |
shifted_cases |
A dataframe of delay shifted cases |
Value
A list of stan data
Author(s)
Sam Abbott
Sebastian Funk