Programming the statistical procedures from SAS

PROC GLM: effects coding?

Accepted Solution Solved
Reply
Contributor
Posts: 52
Accepted Solution

PROC GLM: effects coding?

Hi chaps,

I am running an analysis of multiple linear regression using PROC GLM, with the dataset mainly consisting of categorcial variables.

Do you know that if PROC GLM has the effects coding (-1, 0, 1) for the design matrix. As compared to the dummy coding (0, 1), the effects coding offers the advantage of comparing between each category and the grand mean.

Thanks in advance.


Accepted Solutions
Solution
‎11-12-2011 02:45 PM
SAS Super FREQ
Posts: 3,555

PROC GLM: effects coding?

For everything about effect coding in SAS, see http://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_introcom_a00...

GLM doesn't have the coding you want, but GENMOD does, and can do GLM-type models.

Or you can use the OUTDESIGNONLY OUTDESIGN= option in PROC LOGISTIC to output dummy variables for the explanatory variables, and this use those dummy variables in GLM. (Use anything for the response variable, like a constant vector.)

Rick

View solution in original post


All Replies
Solution
‎11-12-2011 02:45 PM
SAS Super FREQ
Posts: 3,555

PROC GLM: effects coding?

For everything about effect coding in SAS, see http://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_introcom_a00...

GLM doesn't have the coding you want, but GENMOD does, and can do GLM-type models.

Or you can use the OUTDESIGNONLY OUTDESIGN= option in PROC LOGISTIC to output dummy variables for the explanatory variables, and this use those dummy variables in GLM. (Use anything for the response variable, like a constant vector.)

Rick

Contributor
Posts: 52

PROC GLM: effects coding?

Thanks Smiley Wink

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 1816 views
  • 0 likes
  • 2 in conversation