Upload the reduced csvs produced by stoner_stochastic_process into the annex database.
stone_stochastic_upload(
file,
con,
annex,
modelling_group,
disease,
touchstone,
is_cohort,
is_under5,
allow_new_database = FALSE,
testing = FALSE
)
A qs or csv file generated by stone_stochastic_process
DBI connection to production (for argument validation)
DBI connection to annex, to receive stochastic uploads.
The modelling group id
The disease
The touchstone (including version) for these estimates
Set this to TRUE if the csv file is cohort-oriented, or FALSE for calendar-year oriented.
Set this to TRUE if the csv file only considers ages 0-4 inclusive; FALSE if all ages are included.
Create the stochastic_file database if it does not exist. Should only be needed first time on a new database.
For internal use only.