Programming the statistical procedures from SAS

Categorical Variables Using Proc GLM

Reply
Occasional Contributor
Posts: 12

Categorical Variables Using Proc GLM

I am running OLS regressions with many categorical variables as independent variables.  I read other posts saying that using Proc GLM can make this process easier especially when there are many categorical variables within a category.  I am seeing if there is a way to manually choose which categorical variable I want to omit, i.e. choose as the reference variable.  

Attachment
Esteemed Advisor
Posts: 5,540

Re: Categorical Variables Using Proc GLM

If proc glm, you can specify which level of a class variable is the reference with option REF=

 

class sex(ref='M');

PG
SAS Super FREQ
Posts: 4,245

Re: Categorical Variables Using Proc GLM

And for procedures that do not support the REF= option, see this Usage Note about how to set the reference level.

Ask a Question
Discussion stats
  • 2 replies
  • 249 views
  • 2 likes
  • 3 in conversation