Learn R Programming

DALY (version 1.1.0)

aggregate.DALY: Aggregate method for class 'DALY'

Description

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

Usage

## S3 method for class 'DALY':
aggregate(x, by = NULL, \dots)

Arguments

x
Object of class 'DALY'
by
Any of c("outcome", "class", "total")
...
Further arguments passed to or from other methods

Value

  • For by == "outcome":
  • iList containing vectors of DALYs, YLDs, YLLs, Cases and Deaths for each outcome i
  • popPopulation matrix
  • nameName of the disease
  • For by == "class":
  • DALYVector of DALYs aggregated by age/sex class
  • YLDVector of YLDs aggregated by age/sex class
  • YLLVector of YLLs aggregated by age/sex class
  • CasesVector of Cases aggregated by age/sex class
  • DeathsVector of Deaths aggregated by age/sex class
  • popPopulation matrix
  • nameName of the disease
  • For by == "total":
  • DALYVector of DALYs aggregated by outcome and age/sex class
  • YLDVector of YLDs aggregated by outcome and age/sex class
  • YLLVector of YLLs aggregated by outcome and age/sex class
  • CasesVector of Cases aggregated by outcome and age/sex class
  • DeathsVector of Deaths aggregated by outcome and age/sex class
  • popPopulation matrix
  • nameName of the disease

See Also

print.DALY, summary.DALY DALYcalculator (for a brief description of the DALY Calculator) DALYmanual (for a more comprehensive overview)

Examples

Run this code
## load the Neurocysticercosis example
setDALYexample(1)

## initiate the Monte Carlo simulation process
## and store results in object '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

Run the code above in your browser using DataLab