npBar_UCL: Upper Control Limit: Binomial Data (np-chart)

Description Usage Arguments Value Examples

Description

Calculates upper control limit (UCL) for binomial count data acquired over the same-sized area of opportunity.

Usage

1
npBar_UCL(y, n, na.rm = FALSE, ...)

Arguments

y

Vector of binomial count data (not proportions). Each observation having the same-area of opportunity.

n

A number representing the area of opportunity.

na.rm

a logical value indicating whether NA values should be stripped before the computation proceeds.

...

further arguments passed to or from other methods.

Value

A number; 3-sigma upper control limit (UCL)

Examples

1
2
3
set.seed(5555)
p <- rbinom(n = 100, size = 30, prob = .2)
npBar_UCL(y = p, n = 30)

kenithgrey/ggQC documentation built on May 20, 2019, 9:04 a.m.