89bb95088f
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>
19 lines
824 B
Matlab
19 lines
824 B
Matlab
%RUN_ALL Run all tDCS scenarios and write results/<scenario>.txt for each.
|
|
% Usage: matlab -batch "run_all"
|
|
% Covers the 6 GLMM scenarios and their 6 linear "days x tDCS" (lme_*) variants.
|
|
|
|
scenarios = {'unmerged_full', 'unmerged_d0_10', ...
|
|
'mergeA2_full', 'mergeA2_d0_10', ...
|
|
'mergeB2_full', 'mergeB2_d0_10', ...
|
|
'lme_unmerged_full', 'lme_unmerged_d0_10', ...
|
|
'lme_mergeA2_full', 'lme_mergeA2_d0_10', ...
|
|
'lme_mergeB2_full', 'lme_mergeB2_d0_10', ...
|
|
'lme_unmerged_d0_13', 'lme_mergeA2_d0_13', 'lme_mergeB2_d0_13'};
|
|
|
|
for i = 1:numel(scenarios)
|
|
fprintf('\n\n### Running scenario: %s ###\n', scenarios{i});
|
|
tdcs_glm(scenarios{i});
|
|
end
|
|
|
|
fprintf('\n\nAll %d scenarios complete. See analysis/matlab/results/*.txt.\n', numel(scenarios));
|