[! DEPRECATED] Return indices of rows in scores matrix that contain outliers. A row is treated as having an oultier if any autoscaled score in that row is not between 1 zLimit.

whichOutlier(x, zLimit = 2)

Arguments

x

Matrix-like data.

zLimit

A threshold for standardized (scaled) values (i.e., z-scores) to be treated as an outlier. If (-zLimit) < scale(scores) or scale(scores) > (+zLimit) it is treated as an outlier.
Default zLimit = 2.

Value

Vector of indices that indicate rows containing outliers.

See also

Other component analysis / factorisation related functions in spHelper: getScores(), infoDim(), plot_spDiff(), qplot_infoDim(), qplot_kAmp(), qplot_kSp(), qplot_spc(), reconstructSp(), sortLoadings(), unipeak()

Author

Vilmantas Gegzna

Examples



whichOutlier(Scores2)
#> Warning: 'whichOutlier' is deprecated.
#> Use 'outside_mean_pm_Nsd' instead.
#> See help("Deprecated") and help("spHelper-deprecated").
#>  [1]   1   2  13  28  34  39  45  50  55  67  70  77  87  89  94 100 103 104 105
#> [20] 109 111 121 127 133 135 143 147 148
whichOutlier(Scores2,3)
#> Warning: 'whichOutlier' is deprecated.
#> Use 'outside_mean_pm_Nsd' instead.
#> See help("Deprecated") and help("spHelper-deprecated").
#> [1] 1