scoutsimple: scoutsimple

Description Usage Arguments Value Examples

View source: R/scoutsimple.R

Description

Shift of an array with a single step.

Usage

1
scoutsimple(X, pcaref, T2.target = NA, SPE.target = NA)

Arguments

X

Matrix with observations that will be shifted as rows.

pcaref

List with the elements of a PCA model:

  • m: mean.

  • s: standard deviation.

  • prepro: preprocessing: "none", "cent" or "autosc".

  • P: loading matrix.

  • lambda: vector with variances of each PC.

T2.target

A number indicating the target value for the T^2_A after the shift. Set to NA by default.

SPE.target

A number indicating the target value for the SPE after the shift. Set to NA by default.

Value

list with elements:

Examples

1
2
3
4
X <- as.matrix(X)
pcamodel.ref <- pcamb_classic(X, 3, 0.1, "autosc") # PCA-MB with all observations
# Shift a set of observations increasing only the T^2 in one step:
outsimple <- scoutsimple(X, pcamodel.ref, T2.target = matrix(40, nrow(X), 1))

SCOUTer documentation built on July 1, 2020, 6:27 p.m.