BookmarkSubscribeRSS Feed
romeo012
Calcite | Level 5

How i can perform PCA figure for this variables

i wright this syntaxe


input Acc$      BLOC$   r$      LT HP   LoL     LaL     LoLLaL  NbR     NRA     NJF     NJM     LF      DFM     DFS     LDF     NLF     LP      GP      ECF     LPL     PFF     NGF;
cards;
PROC PRINCOMP DATA= A       OUT= B       OUTSTAT= C      N = 4        COV         VARDEF = WEIGHT;
VAR     LT HP   LoL     LaL     LoLLaL  NbR     NRA     NJF     NJM     LF      DFM     DFS     LDF     NLF     LP      GP      ECF     LPL     PFF     NGF;
run;
quit;


Thank you for your help.

6 REPLIES 6
PaigeMiller
Diamond | Level 26

More specific information about what you want is needed. "Figure" is relatively vague.

 

PROC PRINCOMP has a PLOTS= option that offers many different types of plots. See the documentation: https://documentation.sas.com/?docsetId=statug&docsetTarget=statug_princomp_syntax01.htm&docsetVersi... maybe one of the built in plots works for you

--
Paige Miller
romeo012
Calcite | Level 5

Thank you for responding me.

i need to perform a 2 dimension graphic representing the 2 principal component for individidual and for variables and the biplot graphic.

romeo012
Calcite | Level 5

Thank you

Rick_SAS
SAS Super FREQ

I suspect you are looking for a "score plot" and a "loadings plots." See the article 

"How to interpret graphs in a principal component analysis"

which discusses these plots and how to create them from the output of PROC PRINCOMP.

romeo012
Calcite | Level 5
thank you

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

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
  • 6 replies
  • 1503 views
  • 0 likes
  • 3 in conversation