Description Usage Arguments Details
Compute relative risk with approximate confidence intervals
1 | rrci(x, nx, y, ny, alpha = 0.05, method = "Jeffreys")
|
x |
The number of success in the first group |
nx |
The number of observations in the first group |
y |
The number of success in the second group |
ny |
The number of observations in the second group |
alpha |
Determines the confidence level. Defaults to |
method |
Character string giving the method. Allowable options are
|
If method="Jeffreys"
(the default), the function adds 1/2 to
the numerator and 1 to the denominator when estimating the
proporions of successes in each group, thus avoiding infinite values. Then,
estimate the standard error of the log relative risks, compute the confidence
intervals, and transform back to the original scale.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.