Calculates odds ratio by medianunbiased estimation and exact confidence interval using the midp method (Rothman 1998).
1 
x 
input data can be 2x2 matrix or vector of length 4 
conf.level 
confidence level (default is 0.95) 
byrow 
integer vectors are read in rowwise (default) 
interval 
interval for the 
Calculates odds ratio by medianunbiased estimation and exact confidence interval using the midp method (Rothman 1998, p. 251).
This function expects the following 2x2 table struture:
1 2 3 4  exposed not exposed
disease a1 a0
no disease b1 b0

or a numeric vector of the form c(a1, a0, b1, b0).
This function is used by oddsratio.midp
.
x 
table that was used in analysis 
data 
same table as 
estimate 
median unbiased odds ratio 
conf.level 
confidence level used 
Visit http://medepi.com for the latest.
Tomas Aragon, aragon@berkeley.edu, http://www.medepi.com
Kenneth J. Rothman and Sander Greenland (1998), Modern Epidemiology, LippincottRaven Publishers
oddsratio
1 2 3 4 5 6 7 8 9 10 
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.