Hi - I ran a regression model looking at the effect of a treatment (Group) on an outcome variable (Var1) with one covariate (Var2) using XTREG Var1 Var2 Group.
I'd like to use the MARGINS command to obtain the adjusted means to communicate the effect of the treatment.
If the predictor variable Group is code 0 or 1, how can I write a command to get the adjusted means? Intuitively, I would guess that I could write MARGINS, at(Group=1). Any advice?
I'd like to use the MARGINS command to obtain the adjusted means to communicate the effect of the treatment.
If the predictor variable Group is code 0 or 1, how can I write a command to get the adjusted means? Intuitively, I would guess that I could write MARGINS, at(Group=1). Any advice?
Comment