mue_rr {mueRelativeRisk}R Documentation

Calculate relative risk based on ratio of median unbiased estimators.

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

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

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)

[Package mueRelativeRisk version 0.1.1 Index]