View source: R/kaiserCriterion.R
kaiserCrit | R Documentation |
Selects the optimal number of principal components to be extracted from a dataset based on Kaiser's criterion
kaiserCrit(data)
data |
Units x variables data matrix. |
bestQ |
Number of components to be extracted (scalar). |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.