relrisk: Relative Risk

Description Usage Arguments Value

View source: R/218RelativeRisk.R

Description

This function calculates the relative risk for an inputted 2 x 2 table

Usage

1
relrisk(tab, conf.level = 0.95)

Arguments

tab

A 2 x 2 contingency table passed through table().

conf.level

The confidence level you are testing at; defaults to 95%

Value

Returns the relative risk test statistic, r, the confidence level of the interval, and the confidence interval itself.


ESunRoc/STT218 documentation built on Jan. 14, 2020, 2:39 a.m.