testor {samplesizeestimator} | R Documentation |
Sample size for testing Odds Ratio
Description
When we try to associate multiple exposures to an outcome, we need to caluclate the odds ratio (OR) of a particular exposure in the presence of other exposures and test their relative importance in the model using a significance test based on OR. This function computes sample size based on testing OR for a case-control study design
Usage
testor(p0, or, alp, pwr, k)
Arguments
p0 |
Probability of exposure among the controls |
or |
Anticipated Odds Ratio |
alp |
Probability of type I error |
pwr |
Desired level of power |
k |
ratio of number of cases to controls to cases |
Value
a list object, the required minimum sample size along with description for reporting
Author(s)
R. Amala, Scientist-C, ICMR-VCRC, Puducherry & G. Kumarapandiyan, Asst. Prof., Madras Christian College, Chennai
References
Lwanga, S. K., Lemeshow, S., & World Health Organization. (1991). Sample size determination in health studies: a practical manual. World Health Organization.
Examples
testor(p0=0.042,or=2.5,alp=0.05,pwr=0.8,k=1)