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.
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.
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.
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?
@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.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.