mue_rr {mueRelativeRisk} | R Documentation |
This function calculates an estimate of relative risk based on the ratio of two median unbiased estimates of proportions based on the work by Carter et al (2010). The relative risk will be in the order of Pr(Group 1) / Pr(Group 2).
mue_rr(n1, y1, n2, y2, alpha = 0.05)
n1 |
Sample size for group 1. |
y1 |
Number of events in group 1. |
n2 |
Sample size for group 2. |
y2 |
Number of events in group 2. |
alpha |
The significance level for the confidence interval. Default value is 0.05. |
A dataframe with the various components generated during the estimation along with the MUE-based estimate of the relative risk.
mue_rr(9,1,11,0)
mue_rr(9,1,11,0,0.05)
mue_rr(3,0,4,0,0.05)
mue_rr(12,1,15,1,0.15)