To extract principle components using SAS
Posted: 28 January 2013 09:25 AM   [ Ignore ]
Sr. Member
Total Posts:  169
Joined  2011-09-20

proc factor data = “S:\projects\pca\m255_sas”  method = principal nfact =1 out =pca_test;
var item13 item14 item15 item16 item17 item18 item19 item20 item21 item22 item23 item24 ;

This code is based on the example stuff from below UCLA link.
One thing worth to note, the sas output Factor1 is the score (how much weight is used for each item to form the first component). The factor1 from the pca_test data is the actual first principle components from the item13-item24.

A good example with DATA and program

A good book with intuition
A Step-by-Step Approach to Using the SAS System for Factor Analysis and Structural Equation Modeling
Larry Hatcher, Ph.D.

Principal Component Analysis is Not Factor Analysis!

Principal Component Analysis = Variable Reduction method, usually used to find the first or first two components.

Factor Analysis = method usually used to find the latent factor.


A humble student of business

Posted: 28 January 2013 04:04 PM   [ Ignore ]   [ # 1 ]
Total Posts:  901
Joined  2011-09-19

Interesting, thanks!



To reply/post new questions: Please use the group WRDS/SAS on Google Groups!