BookmarkSubscribeRSS Feed
iiibbb
Quartz | Level 8

I have a variable that I would like to model using another.  The initial relationship isn't very good, but I have a raft of potential covariates. 

 

Is there any way to force certain variables to kept in during selection procedures?  I mean, I can always just sort the list manually from selection Cp, but it would be nice to just lock that one down and look at how the other things shake out.

 

Thanks

2 REPLIES 2
Reeza
Super User

On your model statement, use the INCLUDE= option to specify at least 1 so the first variable will always be included. Make sure to list that variable first in your model statement. 

 

INCLUDE=n

forces the first n independent variables listed in the MODEL statement to be included in all models. The selection methods are performed on the other variables in the MODEL statement. The INCLUDE= option is not available with SELECTION=NONE.

 

iiibbb
Quartz | Level 8

Ahh... that was a brain lapse for me.  I saw that in the format page and was thinking of something entirely different.

Sorry for such an obvious question.

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

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
  • 4225 views
  • 8 likes
  • 2 in conversation