BPmidp.CI: Compute Baptista-Pike midp confidence interval for the odds...

Description Usage Arguments Author(s) References Examples

View source: R/ORCI.R

Description

Compute Baptista-Pike midp confidence interval for the odds ratio of two independent binomial proportions.

Usage

1
BPmidp.CI(x1, n1, x2, n2, conf = 0.95, interval = c(1e-08, 1e+08))

Arguments

x1

number of events in group 1.

n1

number of trials in group 1.

x2

number of events in group 2.

n2

number of trials in group 2.

conf

confidence level.

interval

solution finding range.

Author(s)

Libo Sun

References

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.

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

Examples

1
2
3
4
# x1=2, n1=14, x2=1, n2=11
# 95% confidence interval for the odds ratio 

BPmidp.CI(2, 14, 1, 11)

Example output

[1]  0.1705386 26.2911963

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