Helper function. Converts wastewater to Rt after sampling one fecal shedding and one generation interval distribution.
inc2R_one_iter(
i,
dist.fec,
dist.gi,
ww.conc,
scaling.factor,
prm.R,
silent,
RL.max.iter
)List. Elements include inc (incidence) and rt
(reproduction number)
Numeric. Iteration index. (not used but required when using
lapply())
List. Parameters for the fecal shedding distribution in the same format as returned by def_dist().
List. Parameters for the generation interval distribution in the same format as returned by def_dist().
Data frame. Must have variables:
date: calendar date of wastewater collection
value: pathogen concentration
Numeric. Scaling from wastewater concentration to prevalence. This value may be assumed or independently calibrated to data.
List. Settings for the ensemble when calculating Rt. Elements include:
iter: Integer. Number of iterations for the Rt ensemble
CI: Numeric between 0 and 1. Confidence interval width for Rt
estimates after sampling uncertain distributions.
window: Integer. Number of days defining the window of data used by
EpiEstim to estimate Rt. If NULL, will default to 7.
config.EpiEstim: (optional) configuration for EpiEstim defined via
EpiEstim::make_config(). If NULL, will use default config from
EpiEstim.
Logical. Flag to suppress all output messages, warnings, and progress bars.
Integer. Maximum of iterations for the Richardson-Lucy deconvolution algorithm.