ORCI-package: Confidence intervals for the odds ratio

Description Details Note Author(s) References Examples

Description

Computes various confidence intervals for the odds ratio of two independent binomial proportions.

Details

Package: ORCI
Type: Package
Version: 1.1
Date: 2014-06-09
License: GPL-2

Note

Miettinen-Nurminen confidence interval (Miettinen and Nurminen, 1985) is in 'PropCIs' package, and Blaker exact confidence interval (Fay, 2010a and 2010b) is in 'exact2x2' package.

Author(s)

Libo Sun

Maintainer: Libo Sun <Libo.Sun@colostate.edu>

References

Agresti, A. (1999). On logit confidence intervals for the odds ratio with small samples. Biometrics, 55(2):597-602.

Baptista, J. and Pike, M. (1977) Exact two-sided confidence limits for the odds ratio in a 2x2 table. Journal of the Royal Statistical Society. Series C (Applied Statistics), 26(2):214-220.

Blaker, H. (2000). Confidence curves and improved exact confidence intervals for discrete distributions. Canadian Journal of Statistics 28(4): 783-798.

Cornfield, J. (1956). A statistical problem arising from retrospective studies. In Proceedings of the third Berkeley symposium on mathematical statistics and probability, volume 4, pages 135-148. University of California Press Berkeley.

Donner, A. and Zou, G. (2012). Closed-form confidence intervals for functions of the normal mean and standard deviation. Statistical Methods in Medical Research, 21(4):347-359.

Fagerland, M. W. and Newcombe, R. G. (2013). Confidence intervals for odds ratio and relative risk based on the inverse hyperbolic sine transformation. Statistics in Medicine, 32(16): 2823-2836.

Fay, M. P. (2010a). Confidence intervals that Match Fisher's exact and Blaker's exact tests. Biostatistics, 11(2):373-374.

Fay, M. P. (2010b). Two-sided exact tests and matching confidence intervals for discrete data. The R Journal, 2(1):5357.

Gart, J. J. (1966). Alternative analyses of contingency tables. Journal of the Royal Statistical Society. Series B (Methodological), 28:164-179.

Lancaster, H. (1961). Significance tests in discrete distributions. Jornal of the American Statistical Association, 56(294):223-234.

Miettinen, O. and Nurminen, M. (1985). Comparative analysis of two rates. Statistics in Medicine 4(2):213-226.

Parzen, M., Lipsitz, S., Ibrahim, J., and Klar, N. (2002). An estimate of the odds ratio that always exists. Journal of Computational and Graphical Statistics, 11(2):430-436.

Woolf, B. (1955). On estimating the relation between blood group and disease. Annals of human genetics, 19(4):251-253.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# x1=2, n1=14, x2=1, n2=11
# 95% confidence interval for the odds ratio 

Agrestiind.CI(2, 14, 1, 11)
BPexact.CI(2, 14, 1, 11)
BPmidp.CI(2, 14, 1, 11)
Cornfieldexact.CI(2, 14, 1, 11)
Cornfieldmidp.CI(2, 14, 1, 11)
Gart.CI(2, 14, 1, 11)
Invsinh.CI(2, 14, 1, 11, phi.1 = 0.6, phi.2 = 0.4)
MOVER.CI(2, 14, 1, 11)
MUE.CI(2, 14, 1, 11)
Woolf.CI(2, 14, 1, 11)

Example output

[1]  0.1403873 18.2763686
[1]  0.1127829 53.0112493
[1]  0.1705386 26.2911963
[1]   0.07446422 108.01529598
[1]  0.1102018 53.7898565
[1]  0.157595 12.436944
[1] 0.1987505 9.4030565
[1]  0.1647987 15.6829582
[1]  0.1041948 12.4455846
[1]  0.1310604 21.1946394

ORCI documentation built on May 2, 2019, 10:58 a.m.