Description Usage Arguments Examples
View source: R/AgrestiCaffo_CI_2x2.R
The Agresti-Caffo confidence interval for the difference between probabilities
Described in Chapter 4 "The 2x2 Table"
1 | AgrestiCaffo_CI_2x2(n, alpha = 0.05, printresults = TRUE)
|
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) |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.