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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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