See my new blog for R programming at http://rollingyours.wordpress.com
Best Viewed in Large or Full Screen Mode
This video shows how to use the prcomp and varimax functions in R to accomplish a Principal Components Analysis. We cover the following steps: 1) Read in the Data, 2) Plot a Correlation Matrix, 3) Call prcomp, 4) DotPlot the PCA loadings, 5) Apply the Kaiser Criterion, 6) Make a screeplot, 7) Plot the Biplot, and 8) Apply the varimax rotation.
Download Code from https://raw.githubusercontent.com/steviep42/youtube/master/YOUTUBE.DIR/prcomp.R
The example data comes from: Abdi, H., & Williams, L.J. (2010). Principal Component Analysis, Wiley Interdisciplinary Reviews: Computational Statistics, 2, 433-459