I tried running a few polynomial contrasts in SAS for a continuous time variable for linear, quadratic, cubic and quartic contrasts and the F values for each were the same. When I used categorical time, they were different. Additionally, I've never been super clear on how to come up with the contrast values - I know they need to sum to 0, but it always just seems like they're somewhat arbitrary.
Continuous:
proc mixed data=health;
class id;
model y = time group time*group;
repeated / subject=id type=UN;
contrast 'linear' time -2 -1 0 1 2;
contrast 'quadratic' time 2 -1 -2 -1 2;
contrast 'cubic' time -1 2 0 -2 1;
contrast 'quartic' time 1 -4 6 -4 1;
run;
Categorical:
proc mixed data=health;
class id time group;
model y = time group time*group;
repeated / subject=id type=UN;
contrast 'linear' time -2 -1 0 1 2;
contrast 'quadratic' time 2 -1 -2 -1 2;
contrast 'cubic' time -1 2 0 -2 1;
contrast 'quartic' time 1 -4 6 -4 1;
run;