OC: Operating characteristic

View source: R/OC.R

OCR Documentation

Operating characteristic

Description

Calculation of probability of acceptance of a lot with fraction defective p when using plan (n, k) for sampling inspection

Usage

OC(p, n, k, type = c("exact", "napprox","ewmaSK","ewma2"),lam=1)

Arguments

p

fraction defective

n

sample size

k

critical value

type

function used for operating characteristic; "t" stands for exact function using non-central t-distribution (see (Johnson and Welch, 1940)), "napprox" stands for approximation using normal distribution, (see (Jennett and Welch, 1939)); if EWMA statistic is to be used, "ewmaSK" stands for the sigma known case, "ewma2" stands for the sigma unknown case

lam

smoothing parameter in case that EWMA statistic is used

Value

probability of acceptance of a lot (single number)

References

Jennett, W. J. - Welch, B. L.: The Control of Proportion Defective as Judged by a Single Quality Characteristic Varying on a Continuous Scale, Supplement to the Journal of the Royal Statistical Society, Vol. 6, No. 1, pp. 80-88, 1939.

Johnson, N. L. - Welch, B. L.: Applications of the Non-Central t-Distribution, Biometrika, Vol. 31, No. 3/4, pp. 362-389, 1940.

Examples

OC(p=0.1,n=85,k=2.44)

LTPDvar documentation built on May 1, 2022, 5:07 p.m.