ci.ratio.prop.ps: Confidence interval for a paired-samples proportion ratio

View source: R/statpsych3.R

ci.ratio.prop.psR Documentation

Confidence interval for a paired-samples proportion ratio

Description

Computes a confidence interval for a ratio of population proportions in a paired-samples design. This function requires the frequency counts from a 2 x 2 contingency table for two repeated dichotomous measurements.

Usage

ci.ratio.prop.ps(alpha, f00, f01, f10, f11)

Arguments

alpha

alpha level for 1-alpha confidence

f00

number of participants with y = 0 and x = 0

f01

number of participants with y = 0 and x = 1

f10

number of participants with y = 1 and x = 0

f11

number of participants with y = 1 and x = 1

Value

Returns a 1-row matrix. The columns are:

  • Estimate - estimate of proportion ratio

  • LL - lower limit of the confidence interval

  • UL - upper limit of the confidence interval

References

\insertRef

Bonett2006astatpsych

Examples

ci.ratio.prop.ps(.05, 12, 4, 26, 6)

# Should return:
# Estimate       LL       UL
#      3.2 1.766544 5.796628



statpsych documentation built on Sept. 11, 2024, 7:42 p.m.