Skip to contents

Format the wastewater data as a tidy data frame

Usage

format_ww_data(
  log_obs_conc_lab_site,
  ot,
  ht,
  date_df,
  site_lab_map,
  lod_lab_site
)

Arguments

log_obs_conc_lab_site

matrix of numeric values where rows are the site-lab combinations and columns are the observed time points

ot

integer indicating the number of days we will have observed data for in the calibration period

ht

integer indicating the time after the last observed epi indicator and before the forecast date, of which there can still be wastewater observations

date_df

tibble of columns date and t that map time in days to dates

site_lab_map

tibble mapping sites, labs, lab site indices, and the population size of the site

lod_lab_site

vector of numerics indicating the LOD in each lab and site combination

Value

a tidy dataframe containing observed wastewater concentrations in log estimated genome copies per mL for each site and lab at each time point