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
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;
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;
Thank you this was the solution i was searching for.
Regards, Shivi
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.
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.