analysis(matlab): per-variation subfolders (grouping x window) for the paper LME

Add make_variations.m + variation_analyze.m generating 20 self-contained
subfolders under analysis/matlab/variations/, one per grouping x day-window,
each with exactly three files: data.csv (curated subset), analyze.m (a simple
standalone script fitting behavior ~ stim + day + stim:day + (1|rat) on the
success COUNT), and result.txt (its output). Plus variations/SUMMARY.csv.

Groupings (stim=1 / stim=0, other groups dropped):
  unmerge     B2 vs A2
  right_only  B2+Right vs A2            (Box-A dropped)
  naive_a2    B2 vs A2+Naive           (Right, Box-A dropped)
  naive_boxa  B2 vs A2+Naive+Box-A     (Right dropped)
Windows: 0-10, 0-13, 0-5, 6-10, 6-13. All 20 have equal day coverage.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Experiments DB Dev
2026-07-20 20:49:54 -04:00
parent 963fd889b2
commit 969c0205e8
63 changed files with 4343 additions and 0 deletions
@@ -0,0 +1,46 @@
subject,group,day,success,total,stim
Banh-mi-1,Electrode-Box-B2,6,90,131,1
Banh-mi-1,Electrode-Box-B2,7,109,148,1
Banh-mi-1,Electrode-Box-B2,8,104,137,1
Banh-mi-1,Electrode-Box-B2,9,119,150,1
Banh-mi-1,Electrode-Box-B2,10,121,158,1
Banh-mi-2,Electrode-Box-A2,6,74,146,0
Banh-mi-2,Electrode-Box-A2,7,70,148,0
Banh-mi-2,Electrode-Box-A2,8,65,130,0
Banh-mi-2,Electrode-Box-A2,9,79,151,0
Banh-mi-2,Electrode-Box-A2,10,93,152,0
Egg-tart-1,Electrode-Box-B2,6,71,142,1
Egg-tart-1,Electrode-Box-B2,7,79,138,1
Egg-tart-1,Electrode-Box-B2,8,98,142,1
Egg-tart-1,Electrode-Box-B2,9,89,139,1
Egg-tart-1,Electrode-Box-B2,10,96,143,1
Egg-tart-2,Electrode-Box-A2,6,85,145,0
Egg-tart-2,Electrode-Box-A2,7,79,143,0
Egg-tart-2,Electrode-Box-A2,8,76,131,0
Egg-tart-2,Electrode-Box-A2,9,88,149,0
Egg-tart-2,Electrode-Box-A2,10,81,151,0
Khoai-lang-2,Naive,6,21,72,0
Khoai-lang-2,Naive,7,23,99,0
Khoai-lang-2,Naive,8,64,136,0
Khoai-lang-2,Naive,9,75,131,0
Khoai-lang-2,Naive,10,63,134,0
Khoai-tay-2,Naive,6,62,144,0
Khoai-tay-2,Naive,7,87,141,0
Khoai-tay-2,Naive,8,105,152,0
Khoai-tay-2,Naive,9,75,148,0
Khoai-tay-2,Naive,10,101,149,0
OM-2,Naive,6,73,138,0
OM-2,Naive,7,80,131,0
OM-2,Naive,8,91,141,0
OM-2,Naive,9,90,135,0
OM-2,Naive,10,95,142,0
Root-beer-1,Electrode-Box-B2,6,104,139,1
Root-beer-1,Electrode-Box-B2,7,98,148,1
Root-beer-1,Electrode-Box-B2,8,81,145,1
Root-beer-1,Electrode-Box-B2,9,89,156,1
Root-beer-1,Electrode-Box-B2,10,105,158,1
Vu-vuong,Naive,6,49,131,0
Vu-vuong,Naive,7,65,149,0
Vu-vuong,Naive,8,67,141,0
Vu-vuong,Naive,9,73,140,0
Vu-vuong,Naive,10,72,131,0
1 subject group day success total stim
2 Banh-mi-1 Electrode-Box-B2 6 90 131 1
3 Banh-mi-1 Electrode-Box-B2 7 109 148 1
4 Banh-mi-1 Electrode-Box-B2 8 104 137 1
5 Banh-mi-1 Electrode-Box-B2 9 119 150 1
6 Banh-mi-1 Electrode-Box-B2 10 121 158 1
7 Banh-mi-2 Electrode-Box-A2 6 74 146 0
8 Banh-mi-2 Electrode-Box-A2 7 70 148 0
9 Banh-mi-2 Electrode-Box-A2 8 65 130 0
10 Banh-mi-2 Electrode-Box-A2 9 79 151 0
11 Banh-mi-2 Electrode-Box-A2 10 93 152 0
12 Egg-tart-1 Electrode-Box-B2 6 71 142 1
13 Egg-tart-1 Electrode-Box-B2 7 79 138 1
14 Egg-tart-1 Electrode-Box-B2 8 98 142 1
15 Egg-tart-1 Electrode-Box-B2 9 89 139 1
16 Egg-tart-1 Electrode-Box-B2 10 96 143 1
17 Egg-tart-2 Electrode-Box-A2 6 85 145 0
18 Egg-tart-2 Electrode-Box-A2 7 79 143 0
19 Egg-tart-2 Electrode-Box-A2 8 76 131 0
20 Egg-tart-2 Electrode-Box-A2 9 88 149 0
21 Egg-tart-2 Electrode-Box-A2 10 81 151 0
22 Khoai-lang-2 Naive 6 21 72 0
23 Khoai-lang-2 Naive 7 23 99 0
24 Khoai-lang-2 Naive 8 64 136 0
25 Khoai-lang-2 Naive 9 75 131 0
26 Khoai-lang-2 Naive 10 63 134 0
27 Khoai-tay-2 Naive 6 62 144 0
28 Khoai-tay-2 Naive 7 87 141 0
29 Khoai-tay-2 Naive 8 105 152 0
30 Khoai-tay-2 Naive 9 75 148 0
31 Khoai-tay-2 Naive 10 101 149 0
32 OM-2 Naive 6 73 138 0
33 OM-2 Naive 7 80 131 0
34 OM-2 Naive 8 91 141 0
35 OM-2 Naive 9 90 135 0
36 OM-2 Naive 10 95 142 0
37 Root-beer-1 Electrode-Box-B2 6 104 139 1
38 Root-beer-1 Electrode-Box-B2 7 98 148 1
39 Root-beer-1 Electrode-Box-B2 8 81 145 1
40 Root-beer-1 Electrode-Box-B2 9 89 156 1
41 Root-beer-1 Electrode-Box-B2 10 105 158 1
42 Vu-vuong Naive 6 49 131 0
43 Vu-vuong Naive 7 65 149 0
44 Vu-vuong Naive 8 67 141 0
45 Vu-vuong Naive 9 73 140 0
46 Vu-vuong Naive 10 72 131 0