getCC: Get Phase II corrected charting constant using the CUC or EPC...

Description Usage Arguments Examples

View source: R/CARL.R

Description

Obtain a corrected charting constant using the CUC or EPC method

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
getCC(
    m,
    nu,
    ARL0 = 370,
    interval = c(1, 4),
    CUC.tol = 1e-2,
    CUC.maxIter = 1000,
    EPC.p0 = 0.05,
    EPC.epstilda = 0,
    cc.option = c('EPC'),
    ubCons = 1, 
    apprx = FALSE
)

Arguments

m

number of subgroups

nu

degrees of freedom

ARL0

the nominal value of average run length

interval

the searching range of charting constants. The default setting is between 1 and 4.

CUC.tol

tolerance level for the expectation of the conditional average run length for the CUC method. The default setting is 1e-2.

CUC.maxIter

maximum iteration of computation for the CUC method. The default setting is 1000.

EPC.p0

the nominal value of probability for the EPC method. It is not recommended using values greater than 0.5. The default setting is 0.05

EPC.epstilda

the nominal value of tolerance factor for the EPC method. The default setting is 0.

cc.option

the charting constant option. In the default setting, the charting constant is calculated using the EPC method

ubCons

the unbiasing constant. The default setting is 1.

apprx

a trigger asking where the approximation is engaged. The default setting is FALSE.

Examples

1
2
3
4
5
6
7
ub <- c4.f(49)

# get the charting constant using the CUC method
getCC(m = 50, nu = 49, cc.option = 'CUC', ubCons = ub)

# get the charting constant using the EPC method
getCC(m = 50, nu = 49, cc.option = 'EPC', ubCons = ub)

bolus123/PH2XBAR documentation built on Aug. 5, 2020, 11:50 a.m.