Learn R Programming

SAGx (version 1.46.0)

outlier: Identify outliers in the multivariate distribution

Description

A PCA model is fitted to data and two statistics as measures of extremity are calculated. These are the Hotelling t-square and DMODX, the first is a measure of how far away from the centre of the projection subspace the projection of the observation is. The second one measures how remote from the projection the actual observation is. SVD is done directly on the data matrix. The number of significant dimensions is defined as the number of eigenvalues greater than 1. Typically arrays are in different columns.

Usage

outlier(M)

Arguments

M
matrix

Value

  • Dataframe with columns Hotelling and DMODX

References

Jackson, J.E. (1991) A User's Guide to Principal Components. Wiley

Examples

Run this code
# not run
ut<-outlier(M)
#[1] "The number of significant dimensions is 19"
colnames(ut)
#[1] "Hotelling" "DMODX"

Run the code above in your browser using DataLab