Usage
ci.impt(y1, n1, y2 = NULL, n2 = NULL, avail.known = FALSE, pi.2 = NULL,
conf = .95, x100 = TRUE, alternative = "two.sided", bonf = TRUE, wald = FALSE)
Arguments
y1
The number of successes associated with the first proportion.
n1
The number of trials associated with the first proportion.
y2
The number of successes associated with the second proportion. Not used if avail.known = TRUE.
n2
The number of trials associated with the first proportion. Not used if avail.known = TRUE.
avail.known
Logical. Are the proportions $\pi_{2i}$ known? If avail.known = TRUE these proportions should specified in the pi.2 argument.
pi.2
Proportions for $\pi_{2i}$. Required if avail.known = TRUE.
conf
Confidence level, i.e., 1 - $\alpha$.
x100
Logical. If true, estimate is multiplied by 100.
alternative
One of "two.sided", "less", "greater". Allows lower, upper, and two-tailed confidence intervals. If alternative = "two.sided" (the default),
then a conventional two-sided confidence interval is given. The specifications
bonf
Logical. If bonf = TRUE, and the number of requested intervals is greater than one, then Bonferroni-adjusted intervals are returned.
wald
Logical. If avail.known = TRUE one can apply one of two standard error estimators. The default is a delta-derived estimator. If wald = TRUE is specified a modified Wald standard error estimator is used.