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-2024.png

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.

 

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