Get wastewater data values
Usage
get_ww_values(
ww_data,
ww_measurement_col_name = "log_genome_copies_per_ml",
ww_lod_value_col_name = "log_lod",
ww_site_pop_col_name = "site_pop",
one_pop_per_site = TRUE,
padding_value = 1e-08
)
Arguments
- ww_data
Input wastewater dataframe containing one row per observation, with outliers already removed
- ww_measurement_col_name
A string representing the name of the column in the input_ww_data that indicates the wastewater measurement value in log scale, default is
log_genome_copies_per_ml
- ww_lod_value_col_name
A string representing the name of the column in the ww_data that indicates the value of the LOD in log scale, default is
log_lod
- ww_site_pop_col_name
A string representing the name of the column in the ww_data that indicates the number of people represented by that wastewater catchment, default is
site_pop
- one_pop_per_site
a boolean variable indicating if there should only be on catchment area population per site, default is
TRUE
because this is what the stan model expects- padding_value
an smaller numeric value to add to the the concentration measurements to ensure that log transformation will produce real numbers, default value is
1e-8
Value
A list containing the necessary vectors of values that the stan model requires: ww_lod: a vector of the LODs of the corresponding wastewater measurement pop_ww: a vector of the population sizes of the wastewater catchment areas in order of the sites by site_index log_conc: a vector of the log of the wastewater concentration observation