ci.ratio.prop2: Confidence interval for a 2-group proportion ratio

View source: R/statpsych3.R

ci.ratio.prop2R Documentation

Confidence interval for a 2-group proportion ratio

Description

Computes an adjusted Wald confidence interval for a population proportion ratio in a 2-group design.

For more details, see Section 2.3 of Bonett (2021, Volume 3)

Usage

ci.ratio.prop2(alpha, f1, f2, n1, n2)

Arguments

alpha

alpha level for 1-alpha confidence

f1

number of participants in group 1 who have the attribute

f2

number of participants in group 2 who have the attribute

n1

sample size for group 1

n2

sample size for group 2

Value

Returns a 1-row matrix. The columns are:

  • Estimate - adjusted estimate of proportion ratio

  • LL - lower limit of the adjusted Wald confidence interval

  • UL - upper limit of the adjusted Wald confidence interval

References

\insertRef

Price2008statpsych

\insertRef

Bonett2021statpsych

Examples

ci.ratio.prop2(.05, 62, 35, 100, 100)

# Should return:
# Estimate       LL       UL
# 1.765957 1.297164 2.404172



statpsych documentation built on Jan. 13, 2026, 1:07 a.m.