mue_rr: Calculate relative risk based on ratio of median unbiased...

Description Usage Arguments Value Examples

Description

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).

Usage

1
mue_rr(n1, y1, n2, y2, alpha = 0.05)

Arguments

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.

Value

A dataframe with the various components generated during the estimation along with the MUE-based estimate of the relative risk.

Examples

1
2
3
4
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)

rickeycarter/mueRelativeRisk documentation built on May 22, 2019, 2:24 p.m.