I am analysing the slope of one continuous_variable during follow-up across groups.
In the following code, t=fu_year.
I used PROC MIXED. In the procedure, I used ESTIMATE to calculate the difference between slopes of the corresponding group and the reference group (group 4 here).
proc mixed data=dataset order=formatted PLOTS(MAXPOINTS= 100000);
class t group (ref='4');
model continuous_var=fu_year group group*fu_year/ solution ddfm=kr;
repeated t /subject=projid_mixed type=un;
estimate "slope difference for group 1, ref=group4" fu_year 0 group*fu_year 1 0 0 -1 0 0/cl; estimate "slope difference for group 2, ref=group4" fu_year 0 group*fu_year 0 1 0 -1 0 0/cl; estimate "slope difference for group 3, ref=group4" fu_year 0 group*fu_year 0 0 1 -1 0 0/cl; estimate "slope difference for group 5, ref=group4" fu_year 0 group*fu_year 0 0 0 -1 1 0/cl; estimate "slope difference for group 6, ref=group4" fu_year 0 group*fu_year 0 0 0 -1 0 1/cl;
run;
The point estimate is supposed to be same from the table named "solution for fixed effects" and the table named "estimate".
however, my results varied in these two tables.
In the "solution for fixed effects"
Group 1,2,3 have a significantly faster decline (fu_year*group) over time than group 4 .
However, in the table for Estimate, both the estimate and the P-value changed. Is anyone know why the estimates were different between those two tables? Is this normal?
... View more