testor | R Documentation |
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
testor(p0, or, alp, pwr, k)
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 |
a list object, the required minimum sample size along with description for reporting
R. Amala, Scientist-C, ICMR-VCRC, Puducherry & G. Kumarapandiyan, Asst. Prof., Madras Christian College, Chennai
Lwanga, S. K., Lemeshow, S., & World Health Organization. (1991). Sample size determination in health studies: a practical manual. World Health Organization.
testor(p0=0.042,or=2.5,alp=0.05,pwr=0.8,k=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.