testRR {samplesizeestimator} | R Documentation |
Sample size for testing relative risk
Description
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.
Usage
testRR(RR, p0, alp, pwr, k = 1)
Arguments
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 |
Value
a list object with minimum required sample size along with description for reporting
Author(s)
R. Amala, Scientist-C, ICMR-VCRC, Puducherry & G. Kumarapandiyan, Asst. Prof., Madras Christian College, Chennai
Examples
testRR(p0 = 0.2, RR = 1.5, alp = 0.05, pwr = 0.84, k = 1)
[Package samplesizeestimator version 1.0.0 Index]