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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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