=adlbh;
proc mixed datain (., 99);
where base ne . and avisitn not trtpn(ref="0") avisitn;
class usubjid
by paramcd param;=base trtpn avisitn trtpn*avisitn / solution cl alpha=0.05 ddfm=KR;
model chg/subject=usubjid type=&covar;
repeated avisitn* avisitn / diff cl slice=avisitn;
lsmeans trtpn / diff cl;
lsmeans trtpn run;
MMRM in SAS
Mixed Models
Fitting the MMRM in SAS
In SAS the following code was used (assessments at avisitn=0
should also be removed from the response variable):
where the macro variable covar
could be UN
, CS
or AR(1)
. The results were stored in .csv files that were post-processed in R and compared with the results from R.