powered by
Selects the optimal number of principal components to be extracted from a dataset based on Kaiser's criterion
kaiserCrit(data)
Number of components to be extracted (scalar).
Units x variables data matrix.
Ionel Prunila, Maurizio Vichi
Kaiser H. F. (1960) "The Application of Electronic Computers to Factor Analysis" <doi:10.1177/001316446002000>
# Iris data # Loading the numeric variables of iris data iris <- scale(as.matrix(iris[,-5])) # Apply the Kaiser rule h <- kaiserCrit(iris)
Run the code above in your browser using DataLab