MSNS {SNSchart} | R 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 |
Y |
matrix or data.frame. If |
theta |
vector. Value corresponding with the |
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). |
alignment |
character string. Aligment of the data
|
constant |
scalar. Only used when the |
absolute |
logical. If |
chart |
character string. Selected type of chart. One option available:
|
chart.par |
vector. Control limit and other parameters of the selected chart. |
null.dist |
character string. It is the null distribution choose from |
isFixed |
logical. If |
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. |
Value
Multiple output. Select by output$
-
coefficients
: list. Two elements:n
the number of observation per group inX
andchart
the selected chart to perform the analysis. -
X
: vector. New observations (Monitoring sample) to obtain the SNS. -
Z
: vector. SNS of theX
monitoring sample. -
T2
: vector. T2 statistic for each of the groups inX
. -
X.id
: vector. The id of each column (variable) of the matrixX
. -
UCL
: vector. Upper control limit for each group inX
.
Comments
If ties, average ranks are used.
See Also
MNS
for multivariate normal scores
Examples
X = cbind(example91$X1, example91$X2)
X.id = example91$X.id
msns = MSNS(X, X.id)