Get the input ww data passed directly to stan
Source:R/get_stan_data.R
get_input_ww_data_for_stan.Rd
Get the input ww data passed directly to stan
Usage
get_input_ww_data_for_stan(
preprocessed_ww_data,
first_count_data_date,
last_count_data_date,
calibration_time
)
Arguments
- preprocessed_ww_data
a dataframe with the input wastewater data with no gaps, must have the following columns: date, site, lab, genome_copies_per_ml, site_pop, below_lod, and if removing outliers, flag_as_ww_outlier
- first_count_data_date
The earliest day with an observation in the ' count dataset, in ISO8601 format (YYYY-MM-DD)
- last_count_data_date
the last date that a count observation is presen, in ISO8601 format (YYYY-MM-DD)
- calibration_time
integer indicating the max duration in days that the model is calibrated to the count data for