age.deaths: Graph 2020 excess deaths by age group and jurisdiction

View source: R/age.deaths.R

age.deathsR Documentation

Graph 2020 excess deaths by age group and jurisdiction

Description

Function to compute excess deaths by age group and jurisdiction during the 2020 COVID-19 pandemic.

Usage

	age.deaths(state="Massachusetts",
		age.group=c("Under 25 years","25-44 years","45-64 years",
		"65-74 years","75-84 years","85 years and older"),
		plot=c("raw & excess","raw & percent above normal"),
		cumulative=TRUE,
		corrected=FALSE,
		regression=FALSE,
		data=list(),
		date.range=list(),
		return=NULL,
		year=c(2020,2021,2022),
		bg="transparent",
		...)

Arguments

state

state or jurisdiction.

age.group

age group or groups.

plot

what to plot.

cumulative

show cumulative deaths or excess deaths (logical).

corrected

correct past year deaths to 2020 population (logical).

regression

use regression to obtain expected value (instead of corrected mean).

data

list containing CDC data. If not supplied, function will create this object.

date.range

date range for the plot.

return

return specific values to the user.

year

year to plot.

bg

background color.

...

optional arguments.

Value

A plot. Also can optionally return various different things to the user if return is specified.

Author(s)

Liam Revell liam.revell@umb.edu

References

References here.


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