aggregate.DALY: Aggregate method for class 'DALY'

Description Usage Arguments Value Author(s) See Also Examples

Description

Aggregate DALY Calculator output by outcome, age/sex class, or both.

Usage

1
2
## S3 method for class 'DALY'
aggregate(x, by = c("total", "class", "outcome"), ...)

Arguments

x

Object of class 'DALY'

by

Any of c("total", "outcome", "class")

...

Additional arguments to be passed to aggregate

Value

For by = "total":

DALY

Vector of DALYs aggregated by outcome and age/sex class

YLD

Vector of YLDs aggregated by outcome and age/sex class

YLL

Vector of YLLs aggregated by outcome and age/sex class

cases

Vector of cases aggregated by outcome and age/sex class

deaths

Vector of deaths aggregated by outcome and age/sex class

pop

Population matrix

name

Name of the disease

For by = "class":

DALY

Vector of DALYs aggregated by age/sex class

YLD

Vector of YLDs aggregated by age/sex class

YLL

Vector of YLLs aggregated by age/sex class

cases

Vector of cases aggregated by age/sex class

deaths

Vector of deaths aggregated by age/sex class

pop

Population matrix

name

Name of the disease

For by = "outcome":

i

List containing vectors of DALYs, YLDs, YLLs, cases and deaths for each outcome i

pop

Population matrix

name

Name of the disease

Author(s)

brechtdv@gmail.com

See Also

print.DALY, summary.DALY

DALYcalculator (for a brief description of the DALY Calculator)
DALYmanual (for a more comprehensive overview)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 

##= load the NCC example ==================================
setDALYexample(1)

##= perform DALY calculation, store results in 'x' ========
x <- getDALY()

##= store simulations aggregated by =======================
##= outcome and age/sex class     =========================
y <- aggregate(x, by = "total")

summary(y$DALY)  # default summary of total DALYs =========
hist(y$deaths)   # default histogram of total deaths ======

## End(Not run)

DALY documentation built on May 2, 2019, 12:19 p.m.