Programming the statistical procedures from SAS

change reference level for categorical variable in linear regression

Accepted Solution Solved
Reply
New Contributor
Posts: 2
Accepted Solution

change reference level for categorical variable in linear regression

Dear,
I have to set a multiple linear regression with continuous and categorical variables. 

SAS uses the highest value of a categorical variable as the reference level. How can I change the reference level of a categorical variable? 

Can I use CLASS statement with the REF OPTION (REF=FIRST) in the PROC REG or PROC GLM?

Thanks


Accepted Solutions
Solution
‎03-08-2017 06:10 PM
Grand Advisor
Posts: 16,908

Re: change reference level for categorical variable in linear regression

PROC GLMSELECT allows it. I don't know about the others, but thought they didn't. 

View solution in original post


All Replies
Solution
‎03-08-2017 06:10 PM
Grand Advisor
Posts: 16,908

Re: change reference level for categorical variable in linear regression

PROC GLMSELECT allows it. I don't know about the others, but thought they didn't. 

New Contributor
Posts: 2

Re: change reference level for categorical variable in linear regression

Thanks
☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 81 views
  • 1 like
  • 2 in conversation