At long last, a solution to the problem of creating a MIXED model to run
interaction terms of a special contrast and time...
Thanks to Dave Mathson & David Nichols for the syntax.
The originial 3 contrasts fo the 4 TreatmentCondition (s) are:
(1) 0 0 1 -1
(2) 1 -1 0 0
(3) -1 -1 -1 3
The IndicatorOfTime variable is kept in its raw form and ranges from 0 to
12, indicating that there are a total of 13 data points for subjects with
out missing data.
TITLE 'Repeated Measures MIXED Model with Special Contrasts'.
MIXED outcome BY IndicatorOfTime TreatmentCondition
/FIXED=TreatmentCondition IndicatorOfTime
IndicatorOfTime*TreatmentCondition | SSTYPE(3)
/METHOD=REML
/RANDOM INTERCEPT |SUBJECT (ID)
/EMMEANS=TABLES(TreatmentCondition*IndicatorOfTime)
/TEST = 'C1: TreatmentCondition 3 vs. TreatmentCondition 4 x
IndicatorOfTime' TreatmentCondition 0 0 78 -78
TreatmentCondition*IndicatorOfTime
0 0 0 0
0 0 1 -1
0 0 2 -2
0 0 3 -3
0 0 4 -4
0 0 5 -5
0 0 6 -6
0 0 7 -7
0 0 8 -8
0 0 9 -9
0 0 10 -10
0 0 11 -11
0 0 12 -12
/TEST = 'C2: TreatmentCondition 1 vs. TreatmentCondition 2 x
IndicatorOfTime' TreatmentCondition 78 -78 0 0
TreatmentCondition*IndicatorOfTime
0 0 0 0
1 -1 0 0
2 -2 0 0
3 -3 0 0
4 -4 0 0
5 -5 0 0
6 -6 0 0
7 -7 0 0
8 -8 0 0
9 -9 0 0
10 -10 0 0
11 -11 0 0
12 -12 0 0
/TEST = 'C3: TreatmentCondition 1-3 vs. TreatmentCondition 4 x
IndicatorOfTime' TreatmentCondition 26 26 26 -78
TreatmentCondition*IndicatorOfTime
0 0 0 0
1/3 1/3 1/3 -1
2/3 2/3 2/3 -2
1 1 1 -3
4/3 4/3 4/3 -4
5/3 5/3 5/3 -5
2 2 2 -6
7/3 7/3 7/3 -7
8/3 8/3 8/3 -8
3 3 3 -9
10/3 10/3 10/3 -10
11/3 11/3 11/3 -11
4 4 4 -12 /SAVE PRED.
Thanks to Ryan Black for support and encouragement.
=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD