7b5c27df8c
Adds tdcs_paper_lme replicating the paper's exact formula/variable names (paper_* switch cases): mergeA2 reproduces the interaction F(1)=7.09 vs 7.12, p=0.009 vs 0.008, with a coverage-confound warning. Rewrites tdcs_power_sim to fit that same formula (interaction term canonicalized to day:stim). Adds a replication test. Suite 37/37. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
21 lines
962 B
Matlab
21 lines
962 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', ...
|
|
'phase_unmerged', 'phase_mergeA2', 'phase_mergeB2', ...
|
|
'paper_unmerged', 'paper_mergeA2', 'paper_mergeB2'};
|
|
|
|
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));
|