October 2017
Beginner to intermediate
572 pages
26h 1m
English
Perform the following steps to determine the number of principal components with the Kaiser method:
> swiss.pca$sdev
Output
[1] 1.6228065 1.0354873 0.9033447 0.5592765 0.4067472
> swiss.pca$sdev ^ 2
output
[1] 2.6335008 1.0722340 0.8160316 0.3127902 0.1654433
> which(swiss.pca$sdev ^ 2> 1)
Output
[1] 1 2
> screeplot(swiss.pca, type="line")
> abline(h=1, col="red", lty= 3)

Read now
Unlock full access