size.ci.oddsratio | R Documentation |
Computes the sample size required to estimate an odds ratio with desired confidence interval precision.
size.ci.oddsratio(alpha, p1, p2, or, r)
alpha |
alpha level for 1 - alpha confidence |
p1 |
planning value for row 1 marginal proportion |
p2 |
planning value for column 1 marginal proportion |
or |
planning value of odds ratio |
r |
desired upper to lower confidence interval endpoint ratio |
Returns the required sample size
size.ci.oddsratio(.05, .3, .2, 5.5, 3.0)
# Should return:
# Sample size
# 356
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.