SAS Enterprise Guide

Desktop productivity for business analysts and programmers
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Unnati25
Calcite | Level 5

Hello, I am working on a project and have few doubts regarding linear regression,

 

Q1 How to interpret goodness of fit in proc genmod?

 

Q2 Which is the best Proc statement for multiple linear regression, which contains categorical variables as covariates?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

@Unnati25 wrote:

Hello, I am working on a project and have few doubts regarding linear regression,

 

Q1 How to interpret goodness of fit in proc genmod?


This is all explained here: https://documentation.sas.com/?docsetId=statug&docsetTarget=statug_genmod_details01.htm&docsetVersio...

 

If there is one or two in particular you need assistance with, please provide the specific statistics that you are looking at.

 

Q2 Which is the best Proc statement for multiple linear regression, which contains categorical variables as covariates?

 

There is no "BEST". PROC GLM does all of these things, as does PROC MIXED and PROC GLIMMIX, and probably others. It depends on what you want to do. GLM uses ordinary least squares to fit the model, and assumes the errors are independent and normally distributed. MIXED and GLIMMIX use maximum likelihood estimation, and allow for more complex error structures where errors can be correlated.

--
Paige Miller

View solution in original post

3 REPLIES 3
PaigeMiller
Diamond | Level 26

@Unnati25 wrote:

Hello, I am working on a project and have few doubts regarding linear regression,

 

Q1 How to interpret goodness of fit in proc genmod?


This is all explained here: https://documentation.sas.com/?docsetId=statug&docsetTarget=statug_genmod_details01.htm&docsetVersio...

 

If there is one or two in particular you need assistance with, please provide the specific statistics that you are looking at.

 

Q2 Which is the best Proc statement for multiple linear regression, which contains categorical variables as covariates?

 

There is no "BEST". PROC GLM does all of these things, as does PROC MIXED and PROC GLIMMIX, and probably others. It depends on what you want to do. GLM uses ordinary least squares to fit the model, and assumes the errors are independent and normally distributed. MIXED and GLIMMIX use maximum likelihood estimation, and allow for more complex error structures where errors can be correlated.

--
Paige Miller
Unnati25
Calcite | Level 5
Thank you for your response ,

But we need to get the parameters estimates to write the linear regression equation and then interpret it accordingly. Also can you please explain how to interpret the GLM results.

PaigeMiller
Diamond | Level 26

@Unnati25 wrote:
Thank you for your response ,

But we need to get the parameters estimates to write the linear regression equation and then interpret it accordingly. Also can you please explain how to interpret the GLM results.


Use the SOLUTION option of the MODEL statement to get the parameter estimates.

 

You ask a very non-specific question about interpreting the results, so I cannot give a specific explanation. Show us the results, and explain what the problem is that you are having interpreting the results.

--
Paige Miller

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 1054 views
  • 0 likes
  • 2 in conversation