First, recognize that blk is a random effect, and that you have to have a unique record for each subject.
Try:
proc mixed data=survey;
class id time blk;
model gain = time wt;
random intercept id/subject=blk;
repeated time / type = ar(1) subject = id(blk);
lsmeans time / pdiff adjust = bon;
run;
This gives an AR+RE model for the response variable.
HOWEVER, modeling a change variable with a covariate that is one of the elements of the change is looking for trouble. See the following link
http://biostat.mc.vanderbilt.edu/wiki/Main/MeasureChange2
and especially the section:
Avoiding Change as a Response Variable in Parallel Designs
In a two-group parallel design, analysis of change is not recommended at all. The response variable should be the final measurement and the baseline measurement should be adjusted for as a covariate using analysis of covariance, with treatment assigned as one of the other variables. Besides the issues listed above, change scores are affected by regression to the mean. The slope of the baseline value may not be 1.0.
What this means is that you are adjusting for the initial body weight twice in your proposed analysis.
Steve Denham
... View more