analysis(matlab): rate-variant + vertical x-axis (templates, generators, summary)
Refactor variation_{analyze,power,logpower,plot}.m to run both count and rate
metrics; plot x-axis labels vertical (xtickangle 90). SUMMARY.csv gains
interaction_p_rate / interaction_p_rs_rate.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -75,7 +75,7 @@ for gi = 1:size(groupings, 1)
|
||||
r = localRun(fullfile(folder, 'analyze.m'));
|
||||
rows(end + 1, :) = {vname, gname, wname, r.nRats, r.nObs, ...
|
||||
r.covEqual, r.interP, r.interPsatt, r.interPrs, r.interEst, ...
|
||||
r.stimP, r.dayP}; %#ok<AGROW>
|
||||
r.stimP, r.dayP, r.interPrate, r.interPrsRate}; %#ok<AGROW>
|
||||
fprintf(' %-16s N=%2d obs=%4d interaction p=%.4g (%+.2f) %s\n', ...
|
||||
vname, r.nRats, r.nObs, r.interP, r.interEst, ...
|
||||
localTern(r.covEqual, 'equal-cov', 'UNEQUAL-cov'));
|
||||
@@ -89,7 +89,8 @@ end
|
||||
% Top-level index of all variations.
|
||||
S = cell2table(rows, 'VariableNames', {'variation', 'grouping', 'window', ...
|
||||
'nRats', 'nObs', 'covEqual', 'interaction_p', 'interaction_p_satt', ...
|
||||
'interaction_p_rs', 'interaction_est', 'stim_p', 'day_p'});
|
||||
'interaction_p_rs', 'interaction_est', 'stim_p', 'day_p', ...
|
||||
'interaction_p_rate', 'interaction_p_rs_rate'});
|
||||
writetable(S, fullfile(root, 'SUMMARY.csv'));
|
||||
fprintf('\nWrote %d variations under %s\n(index: variations/SUMMARY.csv)\n', ...
|
||||
size(rows, 1), root);
|
||||
|
||||
Reference in New Issue
Block a user