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

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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