ormidp.test: odds ratio test for independence (p value) for a 2x2 table

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/ormidp.test.R

Description

Test for independence using the mid-p method (Rothman 1998)

Usage

1
ormidp.test(a1, a0, b1, b0, or = 1)

Arguments

a1

number of exposed cases

a0

number of unexposed cases

b1

number of exposed noncases (controls)

b0

number of unexposed noncases (controls)

or

odds ratio reference value (default is no association)

Details

Test for independence using the mid-p method (Rothman 1998)

Value

$one.sided

one-sided p value

$two.sided

two-sided p value

Author(s)

Tomas Aragon, aragon@berkeley.edu, http://www.phdata.science

References

Kenneth J. Rothman and Sander Greenland (1998), Modern Epidemiology, Lippincott-Raven Publishers

Kenneth J. Rothman (2002), Epidemiology: An Introduction, Oxford University Press

Nicolas P. Jewell (2004), Statistics for Epidemiology, 1st Edition, 2004, Chapman & Hall, pp. 73-81

See Also

tab2by2.test, oddsratio, riskratio

Examples

1
2
3
4
5
##rothman p. 243
ormidp.test(12,2,7,9)

##jewell p. 79
ormidp.test(347,555,20,88)

Example output

   one.sided  two.sided
1 0.01166084 0.02332167
     one.sided    two.sided
1 1.167578e-05 2.335156e-05

epitools documentation built on March 26, 2020, 9:14 p.m.