feat(matlab): add 0-13 day window (lme_*_d0_13) + coverage warning
Box-A2 has no data past ~day 13, so the full-range days x tDCS interaction extrapolates A2's slope and is confounded (spuriously significant, wrong sign). Add the _d0_13 window (equal anchor coverage) and a report warning when the two groups' day coverage is unequal. In the fair 0-13 window the interaction is n.s. with a POSITIVE slope diff and the Day-1 tDCS effect is n.s. -- matching the paper's 'equal on Day 1' direction (underpowered at n=8). Suite 32/32. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -36,6 +36,8 @@ A = anova(lme);
|
||||
L.lme = lme;
|
||||
L.nSubjects = numel(unique(T.subject));
|
||||
L.nObs = height(T);
|
||||
L.maxDayA = max(T.day(T.group == cfg.anchorLow)); % last day Box-A2 has data
|
||||
L.maxDayB = max(T.day(T.group == cfg.anchorHigh)); % last day Box-B2 has data
|
||||
L.interaction = localTerm(C, A, 'day:tDCS');
|
||||
L.day = localTerm(C, A, 'day');
|
||||
L.tDCS = localTerm(C, A, 'tDCS');
|
||||
|
||||
Reference in New Issue
Block a user