mcalibrateControlLimit: Calibration of the control limit for the selected chart

View source: R/MultivariateCalibratePerformanceMeasure.R

mcalibrateControlLimitR Documentation

Calibration of the control limit for the selected chart

Description

The methodology used to calibrate the control limit for the SNS chart depending on the selected chart

Usage

mcalibrateControlLimit(
  targetARL = NULL,
  targetMRL = NULL,
  n,
  m,
  nv,
  theta = NULL,
  Ftheta = NULL,
  dists = c("Normal", "Normal"),
  mu = c(0, 0),
  sigma = NULL,
  dists.par = matrix(c(0, 1, 1, 0, 1, 1), ncol = 2),
  correlation = 0,
  chart = "T2",
  chart.par = c(10),
  replicates = 50000,
  isParallel = FALSE,
  maxIter = 20,
  progress = TRUE,
  alignment = "unadjusted",
  constant = NULL,
  absolute = FALSE
)

Arguments

targetARL

scalar. is the target ARL to calibrate. By default is set to NULL

targetMRL

scalar. is the target ARL to calibrate. By default is set to NULL

n

scalar. Subroup size

m

scalar. Reference sample size

nv

scalar. Number of variables to be generated.

theta

vector. Value corresponding with the Ftheta quantile.

Ftheta

vector. Quantile of the data distribution. The values that take are between (0,1).

dists

vector of character string. Distribution of each variable. The length mus be the same as the number of variables. Select from:

  • "Normal": Normal distribution (default).

  • "Gamma": Gamma distribution.

mu

vector. Two elements of the vector the first one is the mean of the reference sample and the second one is the mean of the monitoring sample.

sigma

scalar. Standard deviation of the desired distribution.

dists.par

matrix For each variable (column), specify

  • par.location: Location parameter of the desired distribution. Default 0.

  • par.scale: Scale parameter of the desired distribution. Default 1.

  • par.shape: Shape parameter of the desired distribution, Default 1.

The number of columns must be the same as the number of variables.

correlation

scalar. Corralation between variables.

chart

character string. Selected type of chart. One option available: "T2".

T2 scheme:

is c(k), where k comes from UCL = mu + kσ, LCL = mu - kσ.

chart.par

vector. Control limit and other parameters of the selected chart.

replicates

scalar. Number of replicates to get the ARL

isParallel

logical. If TRUE the code runs in parallel according to the number of cores in the computer,otherwise the code runs sequentially. Default TRUE.

maxIter

scalar. is a numeric. The maximum number of iteration to take the calibration before stops

progress

logical. If TRUE it shows the progress in the console.

Note

The argument chart.par in this function correspond to the initial parameters to start the calibration.


LuisBenavides/SNS.test documentation built on June 25, 2022, 11:52 p.m.