BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
NKormanik
Barite | Level 11

As I'm understanding things, PLS regression comes up with a number of 'components.'  But how do these components tell us which of the original predictors is most important?

 

Thanks!

Nicholas Kormanik

 

1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User
There is VIP plot you can refer to .

ods graphics on/width=1000px height=500px;
ods output VariableImportancePlot= VariableImportancePlot;
proc pls data=class missing=em nfac=2 plot=(ParmProfiles VIP) details; * cv=split cvtest(seed=12345);
class sex;
model age=weight height sex;
output out=x predicted=p;
run;
proc sort data=VariableImportancePlot;
by descending VIP;
run;

View solution in original post

7 REPLIES 7
Ksharp
Super User
There is VIP plot you can refer to .

ods graphics on/width=1000px height=500px;
ods output VariableImportancePlot= VariableImportancePlot;
proc pls data=class missing=em nfac=2 plot=(ParmProfiles VIP) details; * cv=split cvtest(seed=12345);
class sex;
model age=weight height sex;
output out=x predicted=p;
run;
proc sort data=VariableImportancePlot;
by descending VIP;
run;
PaigeMiller
Diamond | Level 26

The variables with high loadings (either positive or negative) are the important variables in that component. There's no real cutoff, the meaning of "high" is relative to the other loadings in that component.

 

The loadings are available via the DETAILS option of the PROC PLS statement. You can save the loadings to a SAS data set if you want via

 

ods output xloadings=xloadings;
--
Paige Miller
NKormanik
Barite | Level 11

@Ksharp @PaigeMiller   You guys rock.  Thanks so much!

 

 

 

NKormanik
Barite | Level 11
@Ksharp Noticed that your labels in the above graph are in Chinese.

How about that....
Ksharp
Super User
?? I am from China and running Chinese version SAS. If you are running English version SAS with same code , You would get English result . It is called Variables Important Plot . a.k.a VIP
NKormanik
Barite | Level 11

@Ksharp   Yes, I know.  Mainland, would be my guess.  SAS with everything in Chinese just seemed even more overwhelming than SAS in English.  Like, OMG!!

 

 

sas-innovate-white.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Early bird rate extended! Save $200 when you sign up by March 31.

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
  • 7 replies
  • 1599 views
  • 4 likes
  • 3 in conversation