mqr.inference.

proportion#

Functions

confint_1sample(count, nobs[, conf, ...])

Confidence interval for proportion count / nobs.

confint_2sample(count1, nobs1, count2, nobs2)

Confidence interval for difference between proportions count1 / nobs1 - count2 / nobs2.

power_1sample(pa, H0_prop, nobs[, alpha, ...])

Calculate power of a test of proportion in a sample.

power_2sample(p1, p2, nobs[, alpha, ...])

Calculate power of a test of difference of two proportions in two samples.

size_1sample(pa, H0_prop, alpha, beta[, ...])

Calculate sample size for test of proportion.

size_2sample(p1, p2, alpha, beta[, ...])

Calculate sample size to test equality of two proportions.

test_1sample(count, nobs, H0_prop[, ...])

Hypothesis test for the proportion of "true" elements in a sample.

test_2sample(count1, nobs1, count2, nobs2[, ...])

Hypothesis test for the difference between proportions of two samples.