The Confidence Interval on the Difference between Two Proportions uses X and Y, the number of successes found in the two samples, and n_x and n_y, the size of the samples, to estimate the population parameters. This implementation uses the Agresti-Coull Interval method, which is appropriate for any sample size. mctad.confidenceIntervalOnTheDifferenceBetweenTwoProportions() returns an Array of lower, upper values for the (1 - α/2)interval or a Number for the lower or upper (1 - α) boundary.
Assumptions
X and Y are the number of successes found in the two samples, n_x and n_y are the size of the samples, and 0.0 < α < 1.0. By default, the confidence interval is two-tailed; this may be changed by specifying type as either 'l' for lower, or 'u' for upper. Any other value for type generates a two-tailed confidence interval.
Use
mctad.confidenceIntervalOnTheDifferenceBetweenTwoProportions(X, Y, n_x, n_y, α, 'u')
CI on the Difference between Two Proportions
The Confidence Interval on the Difference between Two Proportions uses
X
andY
, the number of successes found in the two samples, andn_x
andn_y
, the size of the samples, to estimate the population parameters. This implementation uses the Agresti-Coull Interval method, which is appropriate for any sample size.mctad.confidenceIntervalOnTheDifferenceBetweenTwoProportions()
returns an Array of lower, upper values for the(1 - α/2)
interval or a Number for the lower or upper(1 - α)
boundary.Assumptions
X
andY
are the number of successes found in the two samples,n_x
andn_y
are the size of the samples, and 0.0 <α
< 1.0. By default, the confidence interval is two-tailed; this may be changed by specifyingtype
as either 'l' for lower, or 'u' for upper. Any other value fortype
generates a two-tailed confidence interval.Use
mctad.confidenceIntervalOnTheDifferenceBetweenTwoProportions(X, Y, n_x, n_y, α, 'u')
Inline Comments