Skip to contents

Truncate the predicted wastewater concentrations based on the lab site reporting latency and the observed time and horizon time

Usage

truncate_for_latency(
  log_conc_lab_site,
  n_lab_sites,
  ot,
  ht,
  nt,
  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 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_latency

vector indicating the number of days from the forecast date of the last possible observation

Value

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