| VSS.scree {psych} | R Documentation |
Cattell's scree test is one of most simple ways of testing the number of components in a correlation matrix. Here we plot the eigen values of a correlation matrix.
VSS.scree(rx, main = "scree plot")
rx |
a correlation matrix or a data matrix. If data, then correlations are found using pairwise deletions. |
main |
Title |
William Revelle
Department of Psychology
Northwestern University
Evanston, Illiniois
Maintainer: William Revelle <revelle@northwestern.edu>
http://personality-project.org/r/vss.html
#VSS.scree(attitude)
#VSS.scree(cor(attitude)
## The function is currently defined as
function(rx,main="scree plot") {
nvar <- dim(rx)[2]
if (nvar <dim(rx)[1]) {rx <- cor(rx,use="pairwise")}
princ <- principal(rx,nvar)
plot(princ$values,type="b", main = main )
abline(h=1) }