## EXAMPLE 1 (from Hajian-Tilaki 2014, p 195):
## A new diagnostic test has been developed and we'd like to conduct a study
## to determine its diagnostic sensitivity which we believe should be in the
## order of 0.80. How many subjects should be enrolled if the prevalence of
## the disease outcome of interest is 0.10 and we'd like to be 95% confident
## that our estimate of sensitivity is within 0.07 of the true population
## value?
epi.ssdxsesp(test = 0.80, type = "se", Py = 0.10, epsilon = 0.07,
error = "absolute", nfractional = FALSE, conf.level = 0.95)
## A total of 1255 subjects need to be enrolled to meet the requirements of the
## study.
Run the code above in your browser using DataLab