Description Usage Arguments Value Examples
This function will remove outliers from your analysis.
1 | remove_outliers(tab, results, min.inertie = 5, ctr.min = 2)
|
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. |
A data.table object without outliers.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.