remove_outliers: Removes outliers from a PCA

Description Usage Arguments Value Examples

Description

This function will remove outliers from your analysis.

Usage

1
remove_outliers(tab, results, min.inertie = 5, ctr.min = 2)

Arguments

tab

A data.table object containing the data you want to analyse.

results

A list with the results of a PCA.

min.inertie

A numeric between 0 and 100 indicating the minimum iniertia an axis must have to be taken into consideration. Default value is 5

ctr.min

A numeric indicating the CTR threshold above which you consider that an individual is an outlier. Default value is 2.

Value

A data.table object without outliers.

Examples

1
2
3
4
## You want to remove all the indivuals that have a CTR > 1.90 on all the
## axis which represent at least 4% of variance :

tab_clean <- remove_outliers(tab,res_pca,min.inertie = 4, ctr.min = 1.90)

guillaumelf/BarchenPackage documentation built on May 31, 2019, 11:50 p.m.