Learn R Programming

DALY (version 1.1.0)

print.DALY: Print method for class 'DALY'

Description

Print summary of DALY Calculator output aggregated by age/sex class.

Usage

## S3 method for class 'DALY':
print(x, relative = FALSE, outcomes = FALSE, prob = 0.95, digits = 0, \dots)

Arguments

x
Object of class 'DALY'
relative
Show results per 1000 population? See details below
outcomes
Show results per outcome? See details below
prob
Probability span by printed credibility intervals; defaults to .95
digits
Number of decimals to be printed; defaults to 0
...
Further arguments passed to or from other methods

Value

  • print.DALY returns a list containg the following elements:
  • totalMatrix containing mean, median and prob credible interval of total DALYs, YLDs, YLLs, Cases and Deaths
  • outcomesNamed list, containing matrices of DALYs, YLDs, YLLs, Cases and Deaths for each health outcome
  • pctVector of contribution of YLDs and YLLs to overall DALYs

Details

The standard print method gives the absolute number of DALYs, YLDs, YLLs, Cases and Deaths. By specifying relative = TRUE, the number of DALYs, YLDs, YLLs, Cases and Deaths per 1,000 population will be shown. The standard print method gives the number of DALYs, YLDs, YLLs, Cases and Deaths aggregated over all health outcomes. By specifying outcomes = TRUE, the number of DALYs, YLDs, YLLs, Cases and Deaths for each outcome will be shown as well.

See Also

summary.DALY, aggregate.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()

## view the DALY calculation results
print(x)                   # absolute, total
print(x, prob = .90)       # absolute, total (90% credible intervals)
print(x, relative = TRUE)  # relative (ie, per 1000 population)
print(x, outcomes = TRUE)  # outcome-wise

Run the code above in your browser using DataLab