PH2.get.k.EPC: PH2.get.k.EPC

Description Usage Arguments Examples

View source: R/main.R

Description

Obtain a Phase I batch size and a potential Phase I sample size by exceedance probability criterion.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
PH2.get.k.EPC(
	p, 
	c.ii, 
	eps = 0.1, 
	ARL0 = 370, 
	c4.option = TRUE, 
	interval = c(1000, 3000), 
	model = 'ANOVA-based', 
	n = 10, 
	u = runif(100000), 
	v = runif(100000),
	tol = .Machine$double.eps^0.25
)

Arguments

p

exceedance probability

c.ii

a nominal Phase II charting constant

eps

a nominal allowable changes of the in-control average run length

ARL0

a nominal in-control average run length

c4.option

TRUE - the standard deviation estimator corrected by c4. FALSE - no c4 involved

interval

the searching range of Phase I batch size

model

'ANOVA-based' - degrees of freedom equal to k - 1 and estimating the within-batch standard deviation. 'basic' - degree of freedo equal to k * (n - 1) and estimating the pooled standard deviation

n

subgroup size

u

a seqeuence between 0 and 1, and u and v are mutually independent

v

a seqeuence between 0 and 1, and u and v are mutually independent

tol

a tolerance level for the convergence

Examples

1
2
3
4
5
PH2.get.k.EPC(
	p = 0.1, 
	c.ii = 3,
	interval = c(1000, 500000)
)

bolus123/PH1AND2XBAR documentation built on May 7, 2019, 10:56 a.m.