# SAS and Principal Components Analysis

I'm new to SAS coding from SPSS point and click. I don't currently have SPSS, so SAS is my only option.

My question is: how do I get the percent variance explained and cumulative variance explained following varimax rotation?? I get the total that I would get under 'Rotation Sums of Square Loadings' but not the % variance or cumulative %.

Example SAS code below:

PROC FACTOR DATA=survey
METHOD=PRIN
PRIORS=ONE
NFACT=2
MINEIGEN=1
SCREE
ROTATE=VARIMAX
FLAG=.32
OUT=ex4comp4;
VAR pn1 pn2 pn3 pn4 pn5 pn6 pn7 pn8 pn9 pn10 pn11 pn12 pn13 pn14 pn15 pn16 pn17 pn18 pn19 pn20;
RUN;


Essentially I want to know what % variance each factor explains but all I get is the Total.

So frustrated and confused!

Thank you in advance for any suggestions or solutions KWAK

• How do you get from 'I don't have SPSS' to 'SAS is my only option'? – Glen_b Apr 25 '13 at 9:59
• Hi Glen, what I meant is that I have SAS on my computer right now and I am trying to do the work right now. Thanks. – kwak Apr 25 '13 at 10:02
• I can't check right now (with SPSS but no SAS now, ironically), but the percentages you want come as default (e.g. 1, 2). My guess is your nfact and mineigen statements might have suppressed them. Start from a simpler command and see if that's true. – Penguin_Knight Apr 25 '13 at 10:12
• I typed my answer while you were typing your comment. :-). One further note, I think the MINEIGEN and NFACTORS statements are sort of either/or, NFACTORS insists on 2 factors while MINEIGEN says keep only those with eigenvalue over 1. – Peter Flom - Reinstate Monica Apr 25 '13 at 10:16
• Hmm, even with the following basic code i still don't get what I'm looking for. PROC FACTOR DATA=survey NFACT=2 ROTATE=VARIMAX; VAR pn1 pn2 pn3 pn4 pn5 pn6 pn7 pn8 pn9 pn10 pn11 pn12 pn13 pn14 pn15 pn16 pn17 pn18 pn19 pn20; RUN; – kwak Apr 25 '13 at 10:27