RCC_PCA: Retained Component Criterion for Principal Component Analysis

Description Usage Arguments Value Author(s) References Examples

View source: R/RCC_PCA.R

Description

The RCC_PCA criterion is a new tool to determine the optimal number of components (i.e. PCs) to retain for Principal Component Analysis (PCA). This criterion balances between the following two desires, reducing the dimension of the data and increasing the accuracy of the final results of PCA; See Alshammri (2021).

Usage

1

Arguments

x

a N-by-m data matrix, where the rows are "N" observations, and the columns are "m" variables

Value

The values of RCC criterion

Author(s)

Fayed Alshammri

References

Alshammri, F. (2021). Retained component criterion for optimizing principal component analysis. Manuscript submitted for publication.

Examples

1
2
3
4
5
6
7
8
##The data matrix x is the scalled first four variables of "iris data" with m=4 and N=150.
x=scale(iris[,1:4])

##calculate and plot the RCC_PCA values of x after applying PCA.
myresults=RCC_PCA(x)

##lists the values of RCC criterion
myresults

RCCPCA documentation built on Oct. 7, 2021, 1:09 a.m.

Related to RCC_PCA in RCCPCA...