BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
tpakhomova
Fluorite | Level 6

Hi, 

 

I would like to perform a multiple linear regression, and was wondering is PROC REG or PROC GLM/GLMSELECT are my better options when some of my explanatory variables are 3 and 4 levels? I have not used REG or GLM before, so am not familiar with either. I have found the explanation for dummy variables to be somewhat confusing, especially how to determine the reference level (is it always 0, or 1?). Looking for some advice on how to best proceed. 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenKuhfeld
Ammonite | Level 13

Use glmselect. The documentation has a lot of information about coding.

 

Editor’s Note: This video showing how to build multiple linear regression models with and without interaction may be helpful as well.

 

View solution in original post

3 REPLIES 3
WarrenKuhfeld
Ammonite | Level 13

Use glmselect. The documentation has a lot of information about coding.

 

Editor’s Note: This video showing how to build multiple linear regression models with and without interaction may be helpful as well.

 

tpakhomova
Fluorite | Level 6
Do I need to create dummy variables for GLMSELECT? Or is that only for PROC REG?
WarrenKuhfeld
Ammonite | Level 13
I would not have recommended glmselect if you had to do your own coding.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 2577 views
  • 1 like
  • 2 in conversation