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

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 7 replies
  • 698 views
  • 4 likes
  • 3 in conversation