getCC.XBAR: get Phase I corrected charting constant

View source: R/getCC.XBAR.R

getCC.XBARR Documentation

get Phase I corrected charting constant

Description

Obtain a corrected charting constant.

Usage

getCC.XBAR(
	fap0
	,m 
	,var.est = c('S', 'MR') 
	,ub.cons = 1 
	,method = c('exact', 'BA')
	,interval = c(1, 5)
	,nsim = 10000 
	,nu = m - 1 
	,lambda = 1
  	,verbose = FALSE
)

getCC(
	fap0
	,m 
	,var.est = c('S', 'MR') 
	,ub.cons = 1 
	,method = c('exact', 'BA')
	,interval = c(1, 5)
	,nsim = 10000 
	,nu = m - 1 
	,lambda = 1
  	,verbose = FALSE
)

Arguments

fap0

nominal false Alarm Probabilty in Phase 1

m

number of subgroups

var.est

'S' - use mean-square-based estimator, 'MR' - use moving-range-based estimator

ub.cons

unbiasing constant

method

'exact' - calculate results using the exact method, 'BA' - calculate results using the Bonfferoni approximation

interval

searching range of charting constants for the exact method

nsim

number of simulation for the exact method

nu

degrees of freedom for the Bonfferoni approximation

lambda

constant for the Bonfferoni approximation

verbose

print diagnostic information about fap0 and the charting constant during the simulations for the exact method

Value

Object type double. The corrected charting constant.

Examples


set.seed(12345)

# Calculate the charting constant using 10 simulations and mean-square-based estimator
getCC.XBAR(fap0=0.05, m=20, nsim=10, var.est='S', verbose = TRUE)

# Calculate the charting constant using 10 simulations and moving-range-based estimator
getCC.XBAR(fap0=0.05, m=20, nsim=10, var.est='MR', verbose = TRUE)


bolus123/PH1XBAR documentation built on Nov. 12, 2023, 6:21 a.m.