Hello, I have a stacked data set mydata with below the structure: 1. some are repeatedly measured and others are not; 2. sbp_change = sbp_v2 - sbp_v1; id group sbp_v1 sbp_v2 sbp_change 1 1 113 116 3 1 1 110 119 9 2 1 124 115 -9 3 2 125 126 1 3 2 126 134 8 ... %macro mean (a, b, c, d ,e, f, g, h); PROC MIXED DATA = mydata METHOD=ML ABSOLUTE CONVF = 0.00001 NOCLPRINT; CLASS ID group; MODEL &a = group/NOINT; LSMEANS group /CL; REPEATED INT / TYPE = CS SUBJECT = ID; RUN; %mend; %mean (sbp_v1) %mean (sbp_v2) %mean (sbp_change) Theoretically, the lsmean sbp_change should be equal to the difference between lsmean sbp_v2 and lsmean sbp_v1. But my analyis results showed they are not equall. What is the reason? Thanks,
... View more