View source: R/infection.estimator.R
infection.estimator | R Documentation |
Function to estimate the true number of COVID-19 infections through time using confirmed COVID-19 deaths, an IFR value or function specifid by the user, and observed cases.
infection.estimator(state="Massachusetts", cumulative=FALSE, data=list(), delay=20, ifr=0.005, window=7, smooth=TRUE, span=c(0.12,0.3), percent=FALSE, plot=TRUE, bg="transparent", xlim=c(60,366+135), show.points=FALSE, alpha=c(0.25,0.8), cdr=c("sigmoid","average"), ...)
state |
state or jurisdiction. |
cumulative |
show cumulative infections (logical). |
data |
list containing CDC data. If not supplied, function will create this object. |
delay |
average lag from infection to death. |
ifr |
infection-fatality-ratio/rate or function. If more than one value is specified, IFR is interpolated using LOESS smoothing. |
span |
values of |
window |
window for moving average. |
smooth |
smooth estimated infections (logical). |
percent |
show values as percent of population (logical). |
plot |
create a plot (logical). |
bg |
background color for plots. |
xlim |
x-limits for the plot. |
show.points |
show points used in LOESS smoothing (logical). |
alpha |
alpha transparency levels for transparent elements of the plot. |
cdr |
model for case detection rate (CDR) through time. |
... |
optional arguments. |
A plot. Also can optionally return various different things to the user if plot=FALSE
.
Liam Revell liam.revell@umb.edu
References here.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.