Downsample the predicted wastewater concentrations based on the lab site reporting frequency
Source:R/model_component_fwd_sim.R
downsample_for_frequency.Rd
Downsample the predicted wastewater concentrations based on the lab site reporting frequency
Usage
downsample_for_frequency(
log_conc_lab_site,
n_lab_sites,
ot,
ht,
nt,
lab_site_reporting_freq
)
Arguments
- log_conc_lab_site
The matrix of n_lab_sites by n time points indicating the underlying expected observed concentrations
- n_lab_sites
Integer indicating the number of unique lab-site combinations
- 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 time to the end of the forecast time
- nt
integer indicating the time after the last observed epi indicator and before the forecast date, of which there can still be wastewater observations
- lab_site_reporting_freq
vector indicating the mean frequency of wastewater measurements in each site per day (e.g. 1/7 is once per week)