Suppose have 3 Treatment Group, Placebo (1), Group A with Dose 10mg, Group B with Dose 20mg. Study duration: Baseline (Day 1), Week 4, Week 8, Week 12. Goal: 1) compare the change from baseline across visits among treatments separately 2) compare the change from baseline across different visits among (placebo) VS. (combined Group A & B) When using PROC MIXED model, "lsmeans" can provide result of Goal (1), "estimate" can provide (2); however, I am not very sure how to use "estimate" or "lsmestimate" or "contrast" to get Goal (2) proc mixed data= long;
class treatment visit;
model CHG = Treatment*visit;
repeated visit / subject=id type=UN ;
estimate 'placebo vs pool' treatment 1 -0.5 -0.5;
lsmeans treatment*visit/ slice=visit; /*differences in exertype for each time point*/
run;
... View more