SAS repeated measures ANOVA, comparison of within-time effects?

#1
Hey guys, this is my first post, so thanks in advance for reading.

I am using SAS, and comparing the effects of a drug on a biological measure, additionally I am taking repeated measurements from the same experimental setup. I have two treatment groups.

I can navigate main effects (effects of treatment and time) just fine, but I want to dig a little deeper. Specifically, I want to be able to say that particular times are significantly different from one another (orthogonal contrast) but I cant quite get the SAS language right.

Here is my code thus far:

proc glm data=Dopamine;
class Treatment;
model time0 time15 time30 time60 time90 = Treatment / nouni;
repeated Time;
run;

In otherwords, variable 1 = treatment, variable 2 = time with 5 levels. I am looking for a way to contrast time 0 with other times. This does not work:

contrast 'time0vstime15' time 1 0 0 0 1;

but this is all I know about contrasts. Any help would be great!
 
#2
OK. No help here. I may have an answer for anyone else who stumbles on this post. I added a line of code that contrasts subsequent time points with time zero:

proc glm data=Dopamine;
class Treatment;
model time0 time1 time2 time3 time4 = Pretreat / nouni;
repeated Time 5 (0 1 2 3 4) / summary;
run;

I hope this helps someone out there!
 
#3
I have a better, updated answer to my own question. In short, here is the code:

proc glm data=Dopamine;
class Treatment;
model time0 time1 time2 time3 time4 = Pretreat / nouni;
repeated Time 5 (0 1 2 3 4) contrast (1) / canonical printe summary;
run;

The command "contrast" contrasts all other points with the ordinal defined in parentheses. In other words, if I wanted to compare everything to the last repeated measure time, I would insert contrast (5) calling for comparison with the 5th time value.

Happy Anovaing