categorize.pca: Categorize PCA results based on orthogonal and score...

View source: R/pca.R

categorize.pcaR Documentation

Categorize PCA results based on orthogonal and score distances.

Description

The method compares score and orthogonal distances of PCA results from res with critical limits computed for the PCA model and categorizes the corresponding objects as "regular", "extreme" or "outlier".

Usage

## S3 method for class 'pca'
categorize(obj, res = obj$res$cal, ncomp = obj$ncomp.selected, ...)

Arguments

obj

object with PCA model

res

object with PCA results

ncomp

number of components to use for the categorization

...

other parameters

Details

The method does not categorize hidden values if any.

Value

vector (factor) with results of categorization.


mdatools documentation built on Aug. 13, 2023, 1:06 a.m.