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

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Rick_SAS
SAS Super FREQ

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

2 REPLIES 2
Rick_SAS
SAS Super FREQ

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

Ruth
Fluorite | Level 6

Thanks Smiley Wink

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

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