Skip to contents

Downsample the predicted wastewater concentrations based on the lab site reporting frequency and lab site reporting latencyy

Usage

downsample_ww_obs(
  log_conc_lab_site,
  n_lab_sites,
  ot,
  ht,
  nt,
  lab_site_reporting_freq,
  lab_site_reporting_latency
)

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

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)

lab_site_reporting_latency

vector indicating the time from forecast date to last wastewater sample collection date in each lab-site

Value

A sparse matrix of n_lab_sites rows and ot + ht columns of but with NAs for when observations are not measured/reported.