BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Shivi82
Quartz | Level 8

Dear All,

i am on one of the courses offered from the SAS institute for learning & taking some clues which i will further add to one of my projects. this should be an easy fix i am guessing.

 

KIndly see the code that i have built:

proc reg data = statdata.bodyfat2;
model PctBodyFat2= age weight height neck chest abdomen hip thigh knee ankle biceps forearm wrist
/selection=backward;
id weight;
run;

 

As we all know the the elimination method will throw insignificant var one by one. My question here is that along with the elimination method i need to add "p" that calculates predicted values for a given value of x.

Hence the code should look like

 

proc reg data = statdata.bodyfat2;
model PctBodyFat2= age weight height neck chest abdomen hip thigh knee ankle biceps forearm wrist/p /selection=backward;
id weight;
run;

However this throws an error. Kindly let me know if this is doable.

 

Regards, Shivi

1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User

Check Documentation , Found this :

 

proc reg data = statdata.bodyfat2;
model PctBodyFat2= age weight height neck chest abdomen hip thigh knee ankle biceps forearm wrist
/selection=backward;
id weight;

output out=b p=yhat ;
run;

 

View solution in original post

2 REPLIES 2
Ksharp
Super User

Check Documentation , Found this :

 

proc reg data = statdata.bodyfat2;
model PctBodyFat2= age weight height neck chest abdomen hip thigh knee ankle biceps forearm wrist
/selection=backward;
id weight;

output out=b p=yhat ;
run;

 

Shivi82
Quartz | Level 8

Thank you this was the solution i was searching for.

 

Regards, Shivi

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 2 replies
  • 1524 views
  • 1 like
  • 2 in conversation