inc2R_one_iter {ern} | R Documentation |
Helper function. Converts wastewater to Rt after sampling one fecal shedding and one generation interval distribution.
Description
Helper function. Converts wastewater to Rt after sampling one fecal shedding and one generation interval distribution.
Usage
inc2R_one_iter(
i,
dist.fec,
dist.gi,
ww.conc,
scaling.factor,
prm.R,
silent,
RL.max.iter
)
Arguments
i |
Numeric. Iteration index. (not used but required when using
|
dist.fec |
List. Parameters for the fecal shedding distribution in the same format as returned by |
dist.gi |
List. Parameters for the generation interval distribution in the same format as returned by |
ww.conc |
Data frame. Must have variables:
|
scaling.factor |
Numeric. Scaling from wastewater concentration to prevalence. This value may be assumed or independently calibrated to data. |
prm.R |
List. Settings for the ensemble when calculating Rt. Elements include:
|
silent |
Logical. Flag to suppress all output messages, warnings, and progress bars. |
RL.max.iter |
Integer. Maximum of iterations for the Richardson-Lucy deconvolution algorithm. |
Value
List. Elements include inc
(incidence) and rt
(reproduction number)