PH1XBAR: PH1XBAR

Description Usage Arguments Examples

View source: R/main.R

Description

Build a Phase I Shewhart X-bar control chart by the basic model or the ANOVA-based model, and the direct method or the indirect method.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
PH1XBAR(
	X
  ,c.i = NULL
	,FAP = 0.1
	,off.diag = -1/(k - 1)
	#,alternative = '2-sided'
  ,model = 'ANOVA-based'
  ,c4.option = TRUE
	,plot.option = TRUE
	,maxiter = 10000
	,method = 'direct'
	,indirect.interval = c(1, 7)
	,indirect.subdivisions = 100L
	,indirect.tol = .Machine$double.eps^0.25
)

Arguments

X

input and it must be a matrix

c.i

a nominal Phase I charting constant. If this is given, the function will not recompute the charting constant.

FAP

false Alarm Probabilty in Phase 1

off.diag

value of equal-correlation. Default setting is -1/(m - 1)

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

c4.option

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

plot.option

TRUE - draw a plot for the process; FALSE - Not draw a plot for the process

maxiter

maximum iteration of computation in mvtnorm

method

'direct' - charting constants computed by multivariate t distribution. 'indirect' - charting constants computed by multivariate normal distribution

indirect.interval

the searching range of charting constants based on the indirect method

indirect.subdivisions

the parameter of integration for the indirect method. Please see __integrate__

indirect.tol

the tolerate level of convergence of integration for the indirect method. Please see __integrate__

Examples

1
2

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