This function provides confidence limits for simple (binomial) proportions by several different methods.

get_prop(a, n, z = 0.05)

Arguments

a

Numerator

n

Denominator

z

Desired confidence interval/limits. Defaults to 0.05 for 95% confidence interval/limits

Value

An object of class binom providing point estimate of simple binomial proportion and estimate of various confidence interval/limits calculation approaches

Details

The numerator must be smaller than the denominator and both must be positive numbers.

Examples

get_prop(a = 10, n = 11)