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-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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
  • 1298 views
  • 0 likes
  • 3 in conversation