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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 682 views
  • 1 like
  • 2 in conversation