[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: PROC MIXED
I wanted to translate the following SAS code to STATA,
and not being a SAS expert wanted your suggestions.
PROC MIXED SCORING METHOD=ML COVTEST;
CLASS GROUP1 GROUP2 ID ;
MODEL Y=GROUP1 GROUP2 X3;
REPEATED / TYPE=UN SUBJECT=ID ;
I am mainly interested in the results of the LSMEANS.
Note that GROUP1 is binary. The observations are
unique when sorted by ID and GROUP2.
My attempt in Stata was to do the following.
qui tab GROUP2, gen(_gr)
xtgee Y GROUP1 _gr* X3, corr(uns)
The coefficient on GROUP1 does not match the SAS
LSMEANS result. What am I doing wrong?
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
* For searches and help try: