MSNS: Multivariate Sequential Normal Scores

View source: R/MultivariateSequentialNormalScores.R

MSNSR Documentation

Multivariate Sequential Normal Scores

Description

Transform a matrix X into SNS using initial observations Y if available SNS follow the order of X.

Usage

MSNS(
  X,
  X.id,
  Y = NULL,
  theta = NULL,
  Ftheta = NULL,
  scoring = "Z",
  alignment = "unadjusted",
  constant = NULL,
  absolute = FALSE,
  chart = "T2",
  chart.par = c(0.005),
  null.dist = "Chi",
  isFixed = FALSE,
  omit.id = NULL,
  auto.omit.alarm = TRUE
)

Arguments

X

matrix or data.frame. New observations to obtain the normal scores.

X.id

vector. The id of each column (variable) of the matrix X.

Y

matrix or data.frame. If Y is not defined (no previous observation available, NULL), NS is relative to X. Default NULL.

theta

vector. Value corresponding with the Ftheta quantile.

Ftheta

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

scoring

character string. If "Z" (normal scores) (default). If "Z-SQ" (normal scores squared).

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.

null.dist

character string. It is the null distribution choose from "Chi" or "F".

isFixed

logical. If TRUE the reference sample does not update, otherwise the reference sample is updated when the batch is in control.

omit.id

vector. Elements of the vector are the id which are omitted in the analysis.

auto.omit.alarm

logical. Determine if OC signals are added (or not) to reference sample. By default is set to TRUE.

Comments

If ties, average ranks are used.

See Also

MNS for multivariate normal scores

Examples

X = cbind(example91$X1, example91$X2)
X.id = example91$X1.id
msns = MSNS(X, X.id)

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