This function initiates the Monte Carlo DALY calculation process, based on the entered data, and returns the simulated results.
1 
button.call 
Gives information on the origin of the call
(i.e., through the GUI button ( 
aw 
Logical flag, indicating if age weighting should be applied;
if 
dr 
Time discount rate (numeric value between 0 and 1);
if 
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:
i 
For each outcome 
pop 
Population 
name 
Name of the disease 
For each outcome i
, DALY[[
i
]]
is a list
containing the following elements:
DALY 
Vector of simulated DALYs 
YLD 
Vector of simulated YLDs 
YLL 
Vector of simulated YLLs 
INC 
Vector of simulated incident cases 
MRT 
Vector of simulated deaths 
name 
Name of the health outcome 
The vectors containing simulated DALYs, YLDs, YLLs, incident cases and deaths each have three dimensions:
1 
Iterations 
2 
Age groups 
3 
Sex 
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
DALY sensitivity analysis : sensitivity
DALYcalculator
(for a brief description of the DALY Calculator)
DALYmanual
(for a more comprehensive overview)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32  ## Not run:
##= load the NCC example ==================================
setDALYexample(1)
##= perform DALY calculation =============================
##= without age weighting and time discounting ============
getDALY(aw = FALSE, dr = 0)
##= perform DALY calculation, store results in 'x' ========
##= (with age weighting and a 3% time discount rate) ======
x < getDALY(aw = TRUE, dr = 0.03)
##= view the structure of 'x' =============================
str(x)
##= view the DALY calculation results =====================
print(x) # absolute, total ==============
print(x, relative = TRUE) # relative (ie, per 1000 pop) ==
print(x, outcomes = TRUE) # outcomewise =================
##= obtain minimum & maximum simulated DALY ===============
min(x[[1]]$DALY)
max(x[[1]]$DALY)
##= standardized DALY histogram ===========================
hist(x)
##= DALY sensitivity analysis =============================
sensitivity(x)
## End(Not run)

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.