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 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 25. 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
  • 3690 views
  • 8 likes
  • 2 in conversation