BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
ilikesas
Barite | Level 11

Hi,

 

I was wandering if it is pssible to specify a varimax rotation for the Principal Components Analysis - I was searching the documentation but am still confused, so a simple code would be very helpful!

 

Also, I know how to extract the eigen vectors and eign values using the ods output, but is it possible to extract the factor loadings?

 

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
Rick_SAS
SAS Super FREQ

Yes, you can do these things, but you need to use PROC FACTOR, not PROC PRINCOMP.  See the example in the PROC FACTOR documentation.  Use METHOD=PRINCIPAL (which is the default) and ROTATE=VARIMAX in the PROC FACTOR statement,

 

The factor loadings are the elements in the "Factor Pattern" tables, which has the ODS name "FactorPattern".    You can use ODS OUTPUT, or you can use the OUTSTAT= option to capture the loadings and other statistics in an output data set.

View solution in original post

1 REPLY 1
Rick_SAS
SAS Super FREQ

Yes, you can do these things, but you need to use PROC FACTOR, not PROC PRINCOMP.  See the example in the PROC FACTOR documentation.  Use METHOD=PRINCIPAL (which is the default) and ROTATE=VARIMAX in the PROC FACTOR statement,

 

The factor loadings are the elements in the "Factor Pattern" tables, which has the ODS name "FactorPattern".    You can use ODS OUTPUT, or you can use the OUTSTAT= option to capture the loadings and other statistics in an output data set.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 2944 views
  • 1 like
  • 2 in conversation