## 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