AgrestiCaffo_CI_2x2: The Agresti-Caffo confidence interval for the difference...

Description Usage Arguments Examples

View source: R/AgrestiCaffo_CI_2x2.R

Description

The Agresti-Caffo confidence interval for the difference between probabilities

Described in Chapter 4 "The 2x2 Table"

Usage

1
AgrestiCaffo_CI_2x2(n, alpha = 0.05, printresults = TRUE)

Arguments

n

the observed counts (a 2x2 matrix)

alpha

the nominal level, e.g. 0.05 for 95% CIs

printresults

display results (F = no, T = yes)

Examples

1
2
3
4
5
6
load_chapter(4)
# An RCT of high vs standard dose of epinephrine (Perondi et al., 2004):
AgrestiCaffo_CI_2x2(n = matrix(c(7,27,1,33), nrow=2, byrow=TRUE))
# The association between CHRNA4 genotype and XFS (Ritland et al., 2007):
AgrestiCaffo_CI_2x2(n = matrix(c(0,16,15,57), nrow=2, byrow=TRUE))
unload_chapter(4)

ocbe-uio/contingencytables documentation built on Feb. 27, 2021, 4:10 p.m.