BookmarkSubscribeRSS Feed
siftekhar
Calcite | Level 5

Good morning. 

 

I am trying to calculate the eigenvectors corresponding to a eigenvalue of a dataset. 

 

The data has 361 variables and ~2400 observations each. 

 

I have the 361 eigenvalues using the Proc Princomp.

 

Now I need to calculate the eigenvectors of third eigenvalue and fourth eigenvalue. How can I do that using SAS Studio UE?   

1 REPLY 1
PaigeMiller
Diamond | Level 26

Assuming SAS Studio doesn't run out of memory Smiley Mad

 

you want to use the OUTSTAT= option of PROC PRINCOMP and then this OUTSTAT= data set will contain the eigenvectors in that data set, listed next to _TYPE_='SCORE', you are looking for _NAME_='Prin3' and _NAME_='Prin4'

 

https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.4&docsetId=statug&docsetTarget=statu...

--
Paige Miller

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

Register now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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