Description Usage Arguments Details Value Author(s) References See Also Examples
Calculates odds ratio by median-unbiased estimation and exact confidence interval using the mid-p 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 row-wise (default) | 
| interval | interval for the  | 
Calculates odds ratio by median-unbiased estimation and exact confidence interval using the mid-p 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 | 
Tomas Aragon, aragon@berkeley.edu, http://www.phdata.science
Kenneth J. Rothman and Sander Greenland (1998), Modern Epidemiology, Lippincott-Raven Publishers
| 1 2 3 4 5 6 7 8 9 10 | 
$x
     [,1] [,2]
[1,]   12    2
[2,]    7    9
$estimate
[1] 6.880701
$conf.int
[1]  1.276258 60.721998
$conf.level
[1] 0.95
attr(,"method")
[1] "median-unbiased estimate & mid-p exact CI"
$x
     [,1] [,2]
[1,]    9    7
[2,]    2   12
$estimate
[1] 6.880701
$conf.int
[1]  1.276258 60.721998
$conf.level
[1] 0.95
attr(,"method")
[1] "median-unbiased estimate & mid-p exact CI"
$x
     [,1] [,2]
[1,]  347  555
[2,]   20   88
$estimate
[1] 2.732458
$conf.int
[1] 1.683370 4.648361
$conf.level
[1] 0.95
attr(,"method")
[1] "median-unbiased estimate & mid-p exact CI"
$x
     [,1] [,2]
[1,]   88   20
[2,]  555  347
$estimate
[1] 2.732458
$conf.int
[1] 1.683370 4.648361
$conf.level
[1] 0.95
attr(,"method")
[1] "median-unbiased estimate & mid-p exact CI"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.