Skip to contents

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

Value

dataframe of the ww data passed to stan