Hi Philippe,
there is some ambiguity in your description but I will do my best to answer.
What you have described in (1) is all correct. But I assume that the subjects in group A are distinct individuals compared to the subjects in group B. If they are instead the same subjects, you may want to include a single column within-subject mean for each subject rather than modeling the within-subject mean separately for each group.
For option (2), I am a little confused about the set up. I wasn't sure if you mean that subjects can potentialluy crossover from one group to another at the second measuremnt. If this is not the case, and you rather have more than two repeated measurments, you may want to consider inference on the slopes (rates of changes) acorss the time points.
Kind regards,
Andrew
Originally posted by Philippe Peigneux:
Dear Andrew, dear all
I know there is a lot of questions about ANOVA but I would appreciate checking the issue of 2*2 ANOVA with full repeated measures vs. within*between with you if you don't mind.
1) Between * Within ANOVA : I have a design in which subjects from two different groups (A & B, factor between) have two repeated measurements at day 1(d1) and day 2(d2, factor within) . There are 30 subjects per group but for the sake of simplicity I will restrict here the example to 3
Given that there are 2 separate groups, I built the matrix design this way:
A d1 1 1 1 0 0 0 0 0
A d1 1 1 0 1 0 0 0 0
A d1 1 1 0 0 1 0 0 0
A d2 -1 -1 1 0 0 0 0 0
A d2 -1 -1 0 1 0 0 0 0
A d2 -1 -1 0 0 1 0 0 0
B d1 -1 1 0 0 0 1 0 0
B d1 -1 1 0 0 0 0 1 0
B d1 -1 1 0 0 0 0 0 1
B d2 1 -1 0 0 0 1 0 0
B d2 1 -1 0 0 0 0 1 0
B d2 1 -1 0 0 0 0 0 1
(col1: interaction groups*day, col2: day, col3-6: Within-subjects mean group A, col7-9 Within-subjects mean group B)
And the exchange blocks based on within-subject factor day would be [1:3 1:3 4:6 4:6]
I can then test the interaction effect either using T or F-test with [1 0 0 0 0 0 0 0], and the main day effect with [0 1 0 0 0 0 0 0] (or -1)
Is it correct ? And in particular, am I right to have within-subjects mean group A in different columns than Within-subjects mean group B ?
2) Within * Within ANOVA :Now, let's imagine I have a similar design but with subjects who have 2 repeated measures A & B at day1 then 2 repeated measures A & B at day 2 , hence 4 measurements per subject.
Question is ; is it sufficient to modify the exchange block to reflect that one subject has four measurements, i.e. [1:3 1:3 1:3 1:3] ?
Or should I also adjust the design matrix and put in same columns Within-subjects mean cond A and Within-subjects mean condition B ? , like here below :
A d1 1 1 1 0 0 0
A d1 1 1 0 1 0 0
A d1 1 1 0 0 1 0
A d2 -1 -1 1 0 0
A d2 -1 -1 0 1 0
A d2 -1 -1 0 0 1
B d1 -1 1 1 0 0
B d1 -1 1 0 1 0
B d1 -1 1 0 0 1
B d2 1 -1 1 0 0
B d2 1 -1 0 1 0
B d2 1 -1 0 0 1
with exchange block [1:3 1:3 1:3 1:3] again ?
Thanks in advance for your support in using this nice NBS tool !
Philippe
Threaded View
| Title | Author | Date |
|---|---|---|
| Philippe Peigneux | Jan 9, 2026 | |
| Andrew Zalesky | Jan 9, 2026 | |
| Philippe Peigneux | 5 hours ago | |
| Andrew Zalesky | 2 hours ago | |
| Philippe Peigneux | Jan 9, 2026 | |
