- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hello all.
I've been trying to run proc glm using categorical variables like gender and education level.
For some reason, the last outcome for each categorical variable are not printing. (0 for estimate and missing for others)
http://support.sas.com/kb/22/590.html The first two tables in this link show the same thing for type webster and block 3.
Is there a way to code to make sure that all the outcome for categorical variables show? I know for sure that there are values through proc freq. For instance, when using gender as a categorical variable, I am getting estimates for male but not for female (male = 1 and female = 2).
My code is something like this. (only variable names are different)
proc glm data = final_data;
class ID gender;
model exercise = gender / solution;
run;
Thank you in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
That's because you also are estimating an intercept term. In a simple model with a single two level categorical predictor, the estimated mean value for the reference level (by default I believe this corresponds to the largest value of the categorical variable) is the value of the intercept term.
There should be an option to run the model without an intercept term. Something like /noint on the model statement or something like that.
You also should be able to get predicted means, by the values of all class variables, by using a MEANS or LSMEANS statement. Look into that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I have multiple class variables. The noint gave me all the estimates for the first one but the others are still missing the estimates for the last output.