02-24-2018 10:06 AM
I confused between PROC GLM and REG, I read about the difference but still don't have the ability to answer a question like:
Q: A linear model has the following characteristics:
- A dependent variable (y)
- Three continuous predictor variables (x1-x3)
- One categorical predictor variable (c1with 3 levels)
Which SAS program fits this model?
My answer is C, but I the right answer is D. Why?
02-24-2018 11:14 AM
Thank you, Understood now, I should explicitly create a dummy variable for categorical predictor before applying PROC REG.
You should use PROC GLM. Much simpler, you do not have to create dummy variables when you use PROC GLM, and you get the exact same answer as if you created the dummy variable and then ran PROC REG.
Need further help from the community? Please ask a new question.