testRR | R Documentation |
When we try to associate multiple exposures to an outcome, we need to know the relative risk (RR) of a particular exposure in the presence of other exposures and test their importance in the model using a significance test based on RR. This function computes sample size based on testing RR for a cohort study design.
testRR(RR, p0, alp, pwr, k = 1)
RR |
anticipated relative risk |
p0 |
probability of outcome among the unexposed |
alp |
level of significance or accepted level of probability of type I error |
pwr |
desired level of power |
k |
number of unexposed for each exposed |
a list object with minimum required sample size along with description for reporting
R. Amala, Scientist-C, ICMR-VCRC, Puducherry & G. Kumarapandiyan, Asst. Prof., Madras Christian College, Chennai
testRR(p0 = 0.2, RR = 1.5, alp = 0.05, pwr = 0.84, k = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.