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-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!

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
  • 261 views
  • 0 likes
  • 2 in conversation