pBar {ggQC} | R Documentation |
Mean Proportion: Binomial Data (p-chart)
Description
Calculates overall mean proportion for binomial proportion data acquired over a variable area of opportunity.
Usage
pBar(y, n, na.rm = FALSE, ...)
Arguments
y |
Vector of binomial proportion data (not counts). Observations may have a different area of opportunity, n. |
n |
A vector 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 vector of mean proportion, length equal to length of parameter y.
Examples
set.seed(5555)
p <- rbinom(n = 100, size = 30, prob = .2)
n <- rpois(100, 100)
pBar(y = p/n, n = n)
[Package ggQC version 0.0.31 Index]