analysis(matlab): matched-effort comparison (prev _f full vs current 0-3)

Add make_matched_effort.m: pick the current-study day cutoff whose per-animal
cumulative attempts best match the previous (_f) study's full-span total
(~405 attempts/animal -> current days 0-3), then fit the paper LME on both.

Two variation folders (data.csv + analyze.m + result.txt):
  variations/prev_f_full/            b2_f vs a2_f, days 0-9  (24 rats)
  variations/matched_current_d0_3/   Box-B2 vs Box-A2, 0-3   (6 rats)

At matched cumulative effort both show a significant positive stim x day
interaction (prev p=0.008 +0.56/day; current-0-3 p=0.004 +10.2/day) -- the
tDCS acceleration replicates at equal practice, though the count slopes are
not directly comparable across datasets given differing attempts/session.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Experiments DB Dev
2026-07-22 14:39:15 -04:00
parent d9b65a3279
commit 9af33e747e
7 changed files with 634 additions and 0 deletions
@@ -0,0 +1,25 @@
subject,group,day,success,total,stim
Banh-mi-1,Electrode-Box-B2,0,13,84,1
Banh-mi-1,Electrode-Box-B2,1,35,86,1
Banh-mi-1,Electrode-Box-B2,2,47,110,1
Banh-mi-1,Electrode-Box-B2,3,65,140,1
Banh-mi-2,Electrode-Box-A2,0,25,97,0
Banh-mi-2,Electrode-Box-A2,1,22,101,0
Banh-mi-2,Electrode-Box-A2,2,22,119,0
Banh-mi-2,Electrode-Box-A2,3,29,118,0
Egg-tart-1,Electrode-Box-B2,0,7,56,1
Egg-tart-1,Electrode-Box-B2,1,16,78,1
Egg-tart-1,Electrode-Box-B2,2,23,103,1
Egg-tart-1,Electrode-Box-B2,3,63,120,1
Egg-tart-2,Electrode-Box-A2,0,9,32,0
Egg-tart-2,Electrode-Box-A2,1,2,38,0
Egg-tart-2,Electrode-Box-A2,2,31,93,0
Egg-tart-2,Electrode-Box-A2,3,44,101,0
Root-beer-1,Electrode-Box-B2,0,11,85,1
Root-beer-1,Electrode-Box-B2,1,18,76,1
Root-beer-1,Electrode-Box-B2,2,40,105,1
Root-beer-1,Electrode-Box-B2,3,55,134,1
Root-beer-2,Electrode-Box-A2,0,22,74,0
Root-beer-2,Electrode-Box-A2,1,31,87,0
Root-beer-2,Electrode-Box-A2,2,49,134,0
Root-beer-2,Electrode-Box-A2,3,31,89,0
1 subject group day success total stim
2 Banh-mi-1 Electrode-Box-B2 0 13 84 1
3 Banh-mi-1 Electrode-Box-B2 1 35 86 1
4 Banh-mi-1 Electrode-Box-B2 2 47 110 1
5 Banh-mi-1 Electrode-Box-B2 3 65 140 1
6 Banh-mi-2 Electrode-Box-A2 0 25 97 0
7 Banh-mi-2 Electrode-Box-A2 1 22 101 0
8 Banh-mi-2 Electrode-Box-A2 2 22 119 0
9 Banh-mi-2 Electrode-Box-A2 3 29 118 0
10 Egg-tart-1 Electrode-Box-B2 0 7 56 1
11 Egg-tart-1 Electrode-Box-B2 1 16 78 1
12 Egg-tart-1 Electrode-Box-B2 2 23 103 1
13 Egg-tart-1 Electrode-Box-B2 3 63 120 1
14 Egg-tart-2 Electrode-Box-A2 0 9 32 0
15 Egg-tart-2 Electrode-Box-A2 1 2 38 0
16 Egg-tart-2 Electrode-Box-A2 2 31 93 0
17 Egg-tart-2 Electrode-Box-A2 3 44 101 0
18 Root-beer-1 Electrode-Box-B2 0 11 85 1
19 Root-beer-1 Electrode-Box-B2 1 18 76 1
20 Root-beer-1 Electrode-Box-B2 2 40 105 1
21 Root-beer-1 Electrode-Box-B2 3 55 134 1
22 Root-beer-2 Electrode-Box-A2 0 22 74 0
23 Root-beer-2 Electrode-Box-A2 1 31 87 0
24 Root-beer-2 Electrode-Box-A2 2 49 134 0
25 Root-beer-2 Electrode-Box-A2 3 31 89 0