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 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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