Hello all,
We are doing analyses in Proc Mixed and are getting results that do not make sense. We are hoping someone here can help resolve the problem. We are doing an analysis that has random intercepts for each of N subjects with a quadratic model for the relationship between the outcome, Y and time, t. The time t has been standardized prior to creating a t^2 variable. In addition, there are two covariates, x1, and x2, that interact. The interaction between t_std and x1 is also included.
We are using the estimate statement to visualize the differences and estimate means for different values of the covariates. The problem is that the estimates that are produced from the estimate statement do NOT match what one would expect based on the estimates from the model fit (i.e., model .../solution). In an effort to troubleshoot, we used estimate statements for only the fixed effects, and these estimates are NOT the same as the estimates from the model fit. The code is shown below. Can anyone explain why these estimates are not the same?
Thank you for any help,
Robert Podolsky
proc mixed covtest ;
class x1(ref="0") subid;
model Y=t_std tstd_squared x1 t_std*preterm
x2 x2*x1/solution;
random int/type=un sub=subid;
estimate 'intercept' intercept 1;
estimate 't_std' t_std 1;
estimate 'tstd_squared' tstd_squared 1;
estimate 'x2' x2 1;
run;
-------------------------------------------
Robert Podolsky
Associate Professor
Wayne State University
-------------------------------------------