infection.range.estimator: Compare estimated infections under a range of IFR models

View source: R/infection.range.estimator.R

infection.range.estimatorR Documentation

Compare estimated infections under a range of IFR models

Description

Function to show estimated COVID-19 infections under a range of different IFR values or models.

Usage

	infection.range.estimator(state="Massachusetts",
		cumulative=FALSE,
		data=list(),
		delay=20,
		ifr.low=0.004,
		ifr.high=0.006,
		window=7,
		smooth=TRUE,
		span=c(0.12,0.3),
		percent=FALSE,
		plot=TRUE,
		bg="transparent",
		xlim=c(60,366+135),
		alpha=0.25,
		cdr=c("sigmoid","average"),
		...)

Arguments

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.low

low value(s) of infection-fatality-ratio/rate or function. If more than one value is specified, IFR is interpolated using LOESS smoothing.

ifr.high

high value(s) of infection-fatality-ratio/rate or function.

window

window for moving average.

smooth

smooth estimated infections (logical).

span

values of span to be passed to loess. First value is for infections through time. Second value is for IFR if applicable.

percent

show values as percent of population (logical).

plot

create a plot (logical).

bg

background color for plots.

xlim

x-limits for the plot.

alpha

alpha transparency level for transparent elements of the plot.

cdr

model for case detection rate (CDR) through time.

...

optional arguments.

Value

A plot.

Author(s)

Liam Revell liam.revell@umb.edu

References

References here.


liamrevell/covid19.Explorer documentation built on Feb. 19, 2023, 3:09 p.m.