Learn R Programming

DALY (version 1.1.0)

getDALY: Initiate the DALY calculation process

Description

This function initiates the Monte Carlo DALY calculation process, based on the entered data, and returns the simulated results.

Usage

getDALY(button.call = FALSE)

Arguments

button.call
Gives information on the origin of the call (i.e., through the GUI button (TRUE) or the RConsole (FALSE))

Value

  • getDALY returns an object of class 'DALY', which inherits from class 'list'. The generic functions print and summary may be used to obtain and print the DALY calculation results. The generic function aggregate extracts from the 'DALY' object results by outcome, age/sex class, or both. An object of class 'DALY' is a list containing the following elements:
  • iFor each outcome i, an unnamed list containing simulated results (see next paragraph)
  • popPopulation
  • nameName of the disease
  • For each outcome i, DALY[[i]] is a list containing the following elements:
  • DALYVector of simulated DALYs
  • YLDVector of simulated YLDs
  • YLLVector of simulated YLLs
  • INCVector of simulated incident cases
  • MRTVector of simulated deaths
  • nameName of the health outcome
  • The vectors containing simulated DALYs, YLDs, YLLs, incident cases and deaths each have three dimensions:
  • 1Iterations
  • 2Age groups
  • 3Sex

See Also

The numerical output methods for 'DALY': print.DALY, summary.DALY The graphical output method for 'DALY': hist.DALY The aggregator method for '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 structure of 'x'
str(x)

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

## obtain minimum & maximum simulated DALY
min(x[[1]]$DALY)
max(x[[1]]$DALY)

Run the code above in your browser using DataLab