Confidence interval for the difference p1 - p2 of two independent proportions x1/n1 and x2/n2. Equivalent to
DescTools::BinomDiffCI() in R.
Methods (method): "ac" (Agresti-Caffo, the default as in DescTools: the Wald interval with one success and one
failure added to each group), "wald", "score" (Newcombe's hybrid score interval, his method 10), "mn"
(Miettinen-Nurminen score interval) and "mee" (Farrington-Manning / Mee: the same without the factor N/(N - 1);
epiR's score interval of the attributable risk). With sides: "left" or "right" only the lower or the upper limit
is kept, at the one-sided level confLevel, and the other end is 1 or -1. The "mn" and "mee" limits are the
roots of the score statistic to the precision of the doubles (DescTools stops at about 1e-7 and 1e-4).
Confidence interval for the difference p1 - p2 of two independent proportions x1/n1 and x2/n2. Equivalent to
DescTools::BinomDiffCI()in R.Methods (
method):"ac"(Agresti-Caffo, the default as in DescTools: the Wald interval with one success and one failure added to each group),"wald","score"(Newcombe's hybrid score interval, his method 10),"mn"(Miettinen-Nurminen score interval) and"mee"(Farrington-Manning / Mee: the same without the factor N/(N - 1); epiR's score interval of the attributable risk). Withsides: "left"or"right"only the lower or the upper limit is kept, at the one-sided levelconfLevel, and the other end is 1 or -1. The"mn"and"mee"limits are the roots of the score statistic to the precision of the doubles (DescTools stops at about 1e-7 and 1e-4).