Hello,
I'm facing a quite complex experimental design with 2 factors (Group and Time) and with paired samples. If the number of patients is the same for each group, i can use the trick proposed by EdgeR in "Comparisons both between and within subjects" section and then by DESeq2 in “Model matrix not full rank” section. But is there a way to deal with unbalanced groups ?
Imagine the following design :
| Sample | Group | Time | Patient |
|---|---|---|---|
| 1 | A | T0 | P1 |
| 2 | A | T1 | P1 |
| 3 | A | T0 | P2 |
| 4 | A | T1 | P2 |
| 5 | A | T0 | P3 |
| 6 | A | T1 | P3 |
| 7 | B | T0 | P1 |
| 8 | B | T1 | P1 |
| 9 | B | T0 | P2 |
| 10 | B | T1 | P2 |
| 11 | B | T0 | P3 |
| 12 | B | T1 | P3 |
| 13 | B | T0 | P4 |
| 14 | B | T1 | P4 |
If I try to do the same thing than with balanced group, i get a “Model matrix not full rank” error.
Best
