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

Hello

 

I am trying to develop a prediction model for oral cancer using logistic regression using the code below. the final model does not include some known risk factors for oral cancer. How can I modify the code below, to force DRKG, SMOKE, and BNUT among the final selected predictors? Thanks

 

proc logistic data=SETA;
class sex (REF='1') AGE_GROUP (REF='1') BMI_GRP (REF='1') SMOKE (REF='0') DRKG (REF='0') BNUT (REF='0') EXERCISE (REF='0') MAR_STAT (REF='1') INCOME_GROUP (REF='1') FAMHIST (REF='0') RESIDENCE (REF='1') EDUC (REF='1') MOM (REF='1') FA (REF='1');
model Oral(event='1') = Smoke DRKG BNUT AGE_GROUP SEX BMI_GRP EXERCISE MAR_STAT INCOME_GROUP RESIDENCE EDUC MOM FA FAMHIST/ selection=STEPWISE slstay=0.05;
output out=oral_cancer_final p=predicted;
run;

1 ACCEPTED SOLUTION

Accepted Solutions
StatDave
SAS Super FREQ

Add the INCLUDE=3 option in the MODEL statement. Be sure to keep those three variables as the first ones listed after the equal sign. 

View solution in original post

2 REPLIES 2
StatDave
SAS Super FREQ

Add the INCLUDE=3 option in the MODEL statement. Be sure to keep those three variables as the first ones listed after the equal sign. 

momolito
Fluorite | Level 6
It worked. Thanks alot for the quick help

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 16. 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
  • 638 views
  • 0 likes
  • 2 in conversation