analysis(matlab): formalize cross-study (current vs _f) rate comparison

Add make_crossstudy_compare.m producing crossstudy/result.txt +
crossstudy_summary.csv: current control (A2, A2+Naive) and anodal (B2) arms
vs the previous study's a2_f/b2_f, on per-animal success RATE, at full range
(0-9 both) and attempt-matched (current 0-3 vs previous full).

Finding: current > previous for both arms at full range (B2 0.54 vs 0.41
p=0.024; A2+Naive 0.42 vs 0.33 p=0.014) but the gap vanishes/reverses at
matched effort (B2 0.33 vs 0.41 n.s.; A2 0.30 vs 0.33 n.s.) -- a practice/
attempts artifact (~2.7x more attempts/session), not a stronger cohort.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Experiments DB Dev
2026-07-22 15:21:33 -04:00
parent 9af33e747e
commit 5fcd97f81a
3 changed files with 140 additions and 0 deletions
@@ -0,0 +1,7 @@
arm,current,mode,window,nCur,rateCur,cumAttCur,prev,ratePrev,cumAttPrev,welchP,mwuP
Control,A2,full,0-9,3,0.422221769664046,1021.66666666667,a2_f,0.332589396921808,384.166666666667,0.15806572958032,0.101098901098901
Control,A2,matched,0-3,3,0.299133032915361,361,a2_f,0.332589396921808,384.166666666667,0.480083751892036,0.536263736263736
Control,A2+Naive,full,0-9,7,0.41833141401484,1011.85714285714,a2_f,0.332589396921808,384.166666666667,0.0135445411684472,0.0283400809716599
Control,A2+Naive,matched,0-3,7,0.26415993029607,293.714285714286,a2_f,0.332589396921808,384.166666666667,0.0948629941799642,0.119830118282131
Anodal,B2,full,0-9,3,0.536727902171637,1232.66666666667,b2_f,0.405880120526244,426.583333333333,0.0244732462562875,0.0703296703296703
Anodal,B2,matched,0-3,3,0.332091503267974,392.333333333333,b2_f,0.405880120526244,426.583333333333,0.0731567689117918,0.101098901098901
1 arm current mode window nCur rateCur cumAttCur prev ratePrev cumAttPrev welchP mwuP
2 Control A2 full 0-9 3 0.422221769664046 1021.66666666667 a2_f 0.332589396921808 384.166666666667 0.15806572958032 0.101098901098901
3 Control A2 matched 0-3 3 0.299133032915361 361 a2_f 0.332589396921808 384.166666666667 0.480083751892036 0.536263736263736
4 Control A2+Naive full 0-9 7 0.41833141401484 1011.85714285714 a2_f 0.332589396921808 384.166666666667 0.0135445411684472 0.0283400809716599
5 Control A2+Naive matched 0-3 7 0.26415993029607 293.714285714286 a2_f 0.332589396921808 384.166666666667 0.0948629941799642 0.119830118282131
6 Anodal B2 full 0-9 3 0.536727902171637 1232.66666666667 b2_f 0.405880120526244 426.583333333333 0.0244732462562875 0.0703296703296703
7 Anodal B2 matched 0-3 3 0.332091503267974 392.333333333333 b2_f 0.405880120526244 426.583333333333 0.0731567689117918 0.101098901098901