Description Usage Arguments Value Comments See Also Examples
View source: R/UnivariateSequentialNormalScores.R
Transform a vector X
into SNS using initial observations Y
if available
SNS follow the order of X
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 
X 
vector. New observations to obtain the N¡normal scores. 
X.id 
vector. The id of the vector 
Y 
vector. If 
theta 
scalar. Value corresponig with the 
Ftheta 
scalar. Quantile of the data distribution. The values that take are between (0,1). 
scoring 
character string. If "Z" (normal scores) (default). If "ZSQ" (normal scores squared). 
Chi2corrector 
character string. Only when scoring is ZSQ. Select from
If "approx" () (default). If "exact" (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. Three options are available: Shewhart, CUSUM, EWMA 
chart.par 
vector. The size depends on the selected chart:

snsRaw 
logical. If 
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. 
Multiple output. Select by output$
coefficients
: list. Three elements: n
the number of observation per group in X
, chart
the selected chart to perform the analysis, and chart.par
the parameters of the selected chart.
R
: vector. Ranks for the new observations (Monitoring sample).
X
: vector. New observations (Monitoring sample) to obtain the SNS.
Z
: vector. SNS of the X
monitoring sample.
X.id
: vector. The id of each column (variable) of the matrix X
.
UCL
: vector. Upper control limit for each group in X
.
LCL
: vector. Lower control limit for each group in X
.
scoring
: string. Selected score to evaluate SNS.
If ties occur, average ranks are used.
NS
for normal scores
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39  # EXAMPLE CONDITIONAL WITH REFERENCE SAMPLE
Y < c(10, 20, 30, 40, 50, 60, 70, 80, 90, 100)
X < c(30, 35, 45)
theta < 40
Ftheta < 0.5
sample.id < c("a", "b", "c")
SNS(X = X, X.id = sample.id, Y = Y, theta = theta, Ftheta = Ftheta)
# EXAMPLE CONDITIONAL WITH REFERENCE SAMPLE
Y < c(10, 20, 30, 40, 50, 60, 70, 80, 90, 100)
X < c(30, 35, 45)
theta < 40
Ftheta < 0.5
sample.id < c("a", "b", "c")
SNS(X = X, X.id = sample.id, Y = Y, theta = theta, Ftheta = Ftheta)
# EXAMPLE UNCONDITIONAL WITH REFERENCE SAMPLE
Y < c(10, 20, 30, 40, 50, 60, 70, 80, 90, 100)
X < c(30, 35, 45)
theta < NULL
Ftheta < NULL
sample.id < c("a", "b", "c")
SNS(X = X, X.id = sample.id, Y = Y, theta = theta, Ftheta = Ftheta)
# EXAMPLE CONDITIONAL WITHOUT REFERENCE SAMPLE
Y < NULL # c(10,20,30,40,50,60,70,80,90,100)
X < c(30, 35, 45)
theta < 40
Ftheta < 0.5
sample.id < c("a", "b", "c")
SNS(X = X, X.id = sample.id, Y = Y, theta = theta, Ftheta = Ftheta)
# EXAMPLE UNCONDITIONAL WITHOUT REFERENCE SAMPLE
Y < NULL
X < c(30, 35, 45)
theta < NULL
Ftheta < NULL
sample.id < c("a", "b", "c")
SNS(X = X, X.id = sample.id, Y = Y, theta = theta, Ftheta = Ftheta)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.