Hi SAS Community!
I have done a fair bit of macro programming with SAS and lots of straight-forward analyses, but nothing complex and now I am a overwhelmed. Perhaps you can help? I have an experimental design:
* Treatments: A, B, Sham
* Parameters: just one
* Measurements: baseline, T1 - T4
-> so one parameter measured before and then four times after each intervention
Each subject was exposed to all three treatments (different days) so the treatments and the measurements are repeated. (If that's the correct way to say it).
I want to know whether treatment modulates the parameter and how it relates to time, so I thought a two-way repeated measures ANOVA would do be a nice start, followed by Tukey post-hoc test to see if A and B are dif from each other, or just sham. I suppose I could use Dennet post hoc test instead since sham is involved.
I may also want to do a separate model with an interaction term.
What would be the complete SAS syntax for this? I can structure the data as needed (e.g. wide or stacked) but right now I have it like this:
SubjectID Intervention Timepoint Value
===============================
1 A Base 8
1 A T1 19
1 A T2 12
1 A T3 19
1 A T4 13
1 B Base 13
1 B T1 19
1 B T2 11
1 B T3 10
1 B T4 9
1 Sham Base 2
1 Sham T1 3
1 Sham T2 5
1 Sham T3 3
1 Sham T4 4
2 A Base
...
etc.
I was thinking something like
proc glm
class intervention timepoint;
model value = intervention timepoint;
means group / cldiff tukey;
run;
But this is not repeated measures. And I don't even know if this is right. Can you please advise? I can restructure the data however needed, the main thing is I need to do two-way repeated measure anova on the given experiment design.
Thanks!
-Bob
Message was edited by: Bob291032