Learn R Programming

ORCI (version 1.1)

Agrestiind.CI: Compute Agresti independence confidence interval for the odds ratio

Description

Compute Agresti independence-smoothed logit confidence interval for the odds ratio of two independent binomial proportions.

Usage

Agrestiind.CI(x1, n1, x2, n2, conf = 0.95)

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.

References

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

Examples

Run this code
# x1=2, n1=14, x2=1, n2=11
# 95% confidence interval for the odds ratio 

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

Run the code above in your browser using DataLab