twoXtwoRR: Estimate risk ratio and compute CI limits from two-by-two...

Description Usage Arguments Examples

View source: R/EValue.R

Description

Given counts in a two-by-two table, computes risk ratio and confidence interval limits.

Usage

1
twoXtwoRR(n11, n10, n01, n00, alpha = 0.05)

Arguments

n11

Number exposed (X=1) and diseased (D=1)

n10

Number exposed (X=1) and not diseased (D=0)

n01

Number unexposed (X=0) and diseased (D=1)

n00

Number unexposed (X=0) and not diseased (D=0)

alpha

Alpha level associated with confidence interval

Examples

1
2
3
4
5
6
7
# Hammond and Holl (1958 JAMA) Data
# Two by Two Table
#          Lung Cancer    No Lung Cancer
# Smoker    397            78557
# Nonsmoker 51             108778

twoXtwoRR(397, 78557, 51, 108778)

EValue documentation built on Sept. 21, 2018, 6:41 p.m.

Related to twoXtwoRR in EValue...