View source: R/infection.estimator.R
compare.infections | R Documentation |
Function to compared estimated COVID-19 infections and observed deaths through time between states.
compare.infections( states=c("Massachusetts","California",NULL), cumulative=FALSE, data=list(), delay=20, ifr=0.005, window=7, smooth=TRUE, span=c(0.12,0.3), plot=TRUE, bg="transparent", xlim=c(60,366+135), per.capita=TRUE, cols=NULL, cdr=c("sigmoid","average"), ...)
states |
states or jurisdictions to compare. |
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. |
window |
window for moving average. |
smooth |
smooth estimated infections (logical). |
span |
values of |
plot |
create a plot (logical). |
bg |
background color for plots. |
xlim |
x-limits for the plot. |
per.capita |
show values as per 1M population (logical). |
cols |
colors to use for plotting. |
cdr |
model for case detection rate (CDR) through time. |
... |
optional arguments. |
A plot.
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.