proc ttest data=anorexia (where=(treat in ("Cont","CBT")));
class treat;
var prewt;
run;
/* equal variance */
proc mixed data=anorexia (where=(treat in ("Cont","CBT")));
class treat;
model prewt = treat;
run;
/* unequal variance */
proc mixed data=anorexia (where=(treat in ("Cont","CBT")));
class treat;
model prewt = treat / DDFM=Satterthwaite;
repeated / group=treat;
run;
Saturday, July 25, 2009
Independent t-test with PROC MIXED
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment