Skip to contents

Calculates binomial control limits around a target value for a particular sample size and threshold. Uses the smoothing interpolation recommended by (Spiegelhalter 2005).

Usage

control_limits(p, n, theta)

Arguments

p

The control limit to calculate; e.g. 0.975 for upper 95% limit

n

The number of observations

theta

The value around which control limits are calculated (e.g. overall mean)

Value

The value of the limit for that n

References

Spiegelhalter DJ. 2005. Funnel plots for comparing institutional performance. Statistics in Medicine. 24(8):1185–1202. doi:10.1002/sim.1970.

Examples

# control_limits(.975, 32, .15)