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

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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