Last data update: 2014.03.03

R: Average outgoing quality
AOQR Documentation

Average outgoing quality

Description

Average outgoing quality is the mean fraction defective after inspection when the fraction defective before inspection was p, lot size is N and plan (n,k) is used for sampling inspection. The average outgoing quality (assuming that all defective items found are replaced by good ones) is approximately

AOQ(p)=≤ft(1-frac{n}N ight)!cdot pcdot!L(p;n,c).

Usage

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

Arguments

p

fraction defective before inspection

n

sample size

k

critical value

N

lot size (number of items in the lot)

type

type of operating characteristic, see OC, default value "exact"

lam

smoothing parameter for the EWMA statistic, default 1

Value

single value

See Also

LTPDvar-package

Examples

AOQ(0.002,41,2.057083,1000)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(LTPDvar)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/LTPDvar/AOQ.Rd_%03d_medium.png", width=480, height=480)
> ### Name: AOQ
> ### Title: Average outgoing quality
> ### Aliases: AOQ
> ### Keywords: misc
> 
> ### ** Examples
> 
> AOQ(0.002,41,2.057083,1000)
[1] 0.001914739
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>