Last data update: 2014.03.03

R: Break-even value of cm parameter
cmBER Documentation

Break-even value of cm parameter

Description

Break-even value of c_m parameter (which is ratio of cost of inspection of one item by variables to cost of inspection of the item by attributes), i. e. the value of c_m for which mean inspection cost per lot of process average quality for inspection by variables and attributes is equal to mean inspection cost per lot of process average quality for inspection by attributes, using plan (n, c).

Usage

cmBE(N, pbar,px,n,c,type=c("LTPD","AOQL"),
type2 = c("exact", "napprox","ewmaSK","ewma2"),lam=1)

Arguments

N

lot size (number of items in the lot)

pbar

process average fraction defective

px

lot tolerance fraction defective pt (if type="LTPD", which is default) or average outgoing quality limit p_L (if type="AOQL")

n

sample size of benchmark plan for sampling inspection by attributes

c

acceptance number of benchmark plan for sampling inspection by attributes

type

type of acceptance sampling plan; "LTPD" stands for Lot Tolerance Percent Defective (see planLTPD), "AOQL" stands for Average Outgoing Quality Limit (see planAOQL)

type2

type of OC to be used

lam

smoothing parameter in case that the EWMA statistic is to be used, defaults to 1

Value

single number

References

Kasprikova, N. and Klufa, J.: AOQL Sampling Plans for Inspection by Variables and Attributes Versus the Plans for Inspection by Attributes. Quality Technology & Quantitative Management, 12/6. 2015.

See Also

planLTPD, planAOQL

Examples

cmBE(N=1000,pbar=0.001,px=0.01,n=80,c=0,type="LTPD",type2="exact");

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/cmBE.Rd_%03d_medium.png", width=480, height=480)
> ### Name: cmBE
> ### Title: Break-even value of cm parameter
> ### Aliases: cmBE
> ### Keywords: misc
> 
> ### ** Examples
> 
> cmBE(N=1000,pbar=0.001,px=0.01,n=80,c=0,type="LTPD",type2="exact");
[1] 1.610994
There were 50 or more warnings (use warnings() to see the first 50)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>