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

Hi, I need to get the coefficient determination value from the proc genmod.

I've read the manuals on SAS about this proc but I could not find the statement.

Is that mean this proc can not produce the value of coefficient determination?

Thanks before.

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

In general, the coefficient of determination (also known as R-squared) is only meaningful for linear model, such as those fit via PROC GLM or PROC REG. Once you moved beyond linear models into generalized linear models (such as PROC GENMOD), this statistic can be problematic, and as far as I know, there is no general consensus among statistician on how to measure the fit of a generalized linear model. Here is one such discussion: https://jonlefcheck.net/2013/03/13/r2-for-linear-mixed-effects-models/ Google finds many other papers on this subject as well.

--
Paige Miller

View solution in original post

4 REPLIES 4
PaigeMiller
Diamond | Level 26

In general, the coefficient of determination (also known as R-squared) is only meaningful for linear model, such as those fit via PROC GLM or PROC REG. Once you moved beyond linear models into generalized linear models (such as PROC GENMOD), this statistic can be problematic, and as far as I know, there is no general consensus among statistician on how to measure the fit of a generalized linear model. Here is one such discussion: https://jonlefcheck.net/2013/03/13/r2-for-linear-mixed-effects-models/ Google finds many other papers on this subject as well.

--
Paige Miller
sasgiaz
Quartz | Level 8

Honestly I wanted to estimate the parameter in regression analysis with maximum likelihood estimation and I thought the proc genmod would do so. But now I think I was wrong?

 

PaigeMiller
Diamond | Level 26

@sasgiaz wrote:

Honestly I wanted to estimate the parameter in regression analysis with maximum likelihood estimation and I thought the proc genmod would do so. But now I think I was wrong?

 


GENMOD will estimate the parameter in regression analysis, using maximum likelihood estimation. In the limited case of ordinary least squares regression, where the errors are normal, maximum likelihood and least squares ought to give identical parameter estimates. Nevertheless, GENMOD does not produce a coefficient of determination.

--
Paige Miller
sasgiaz
Quartz | Level 8
understood. thankyou so much!

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 3695 views
  • 0 likes
  • 2 in conversation