Description Usage Arguments Value Examples
Utility functions to find confidence intervals that (a) overlap a certain value ('ciOutside', 'ciCovers') and (b) different confidence intervals overlap ('ciOverlap').
1 2 3 4 5 6 7 |
x, y |
CIs, as obtained from e.g. the 'acCi' function. |
delta |
Variant frequency value to check against [default: 0]. |
A logical vector, where each elements corresponds to the respective row of 'x' (and 'y').
For 'ciWidth': A numeric vector with the widths of the confidence intervals.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Generate sample data
counts = data.frame(x1 = 1:5, n1 = 30, x2 = 0:4, n2 = 30)
## Agresti-Caffo
ci_ac = with(counts, acCi(x1, n1, x2, n2))
ci_ac2 = with(counts, acCi(x1, n1, x2, n2, 0.99))
## cover 0
idx_zero = ciCovers(ci_ac)
## cover 1
idx_one = ciCovers(ci_ac, delta = 1)
## overlap
idx_same = ciOverlap(ci_ac, ci_ac2)
## width
width = ciWidth(ci_ac)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.