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,139 @@
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-1,Electrode-Box-B2,4,70,127,1
Banh-mi-1,Electrode-Box-B2,5,102,142,1
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-1,Electrode-Box-B2,11,121,148,1
Banh-mi-1,Electrode-Box-B2,12,120,149,1
Banh-mi-1,Electrode-Box-B2,13,135,154,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
Banh-mi-2,Electrode-Box-A2,4,27,136,0
Banh-mi-2,Electrode-Box-A2,5,43,146,0
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,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-1,Electrode-Box-B2,4,69,132,1
Egg-tart-1,Electrode-Box-B2,5,83,136,1
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-1,Electrode-Box-B2,11,96,148,1
Egg-tart-1,Electrode-Box-B2,12,101,156,1
Egg-tart-1,Electrode-Box-B2,13,103,152,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
Egg-tart-2,Electrode-Box-A2,4,54,131,0
Egg-tart-2,Electrode-Box-A2,5,84,139,0
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
Egg-tart-2,Electrode-Box-A2,11,78,152,0
Egg-tart-2,Electrode-Box-A2,12,96,155,0
Egg-tart-2,Electrode-Box-A2,13,84,155,0
Khoai-lang-2,Naive,0,0,0,0
Khoai-lang-2,Naive,1,0,0,0
Khoai-lang-2,Naive,2,10,47,0
Khoai-lang-2,Naive,3,11,52,0
Khoai-lang-2,Naive,4,9,56,0
Khoai-lang-2,Naive,5,34,95,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-lang-2,Naive,11,59,139,0
Khoai-lang-2,Naive,12,51,129,0
Khoai-lang-2,Naive,13,73,143,0
Khoai-tay-1,Electrode-Box-A,0,14,62,0
Khoai-tay-1,Electrode-Box-A,1,22,83,0
Khoai-tay-1,Electrode-Box-A,2,6,79,0
Khoai-tay-1,Electrode-Box-A,3,28,97,0
Khoai-tay-1,Electrode-Box-A,4,60,134,0
Khoai-tay-1,Electrode-Box-A,5,75,138,0
Khoai-tay-1,Electrode-Box-A,6,81,137,0
Khoai-tay-1,Electrode-Box-A,7,78,147,0
Khoai-tay-1,Electrode-Box-A,8,91,132,0
Khoai-tay-1,Electrode-Box-A,9,99,146,0
Khoai-tay-1,Electrode-Box-A,10,94,143,0
Khoai-tay-1,Electrode-Box-A,11,110,156,0
Khoai-tay-1,Electrode-Box-A,12,105,143,0
Khoai-tay-1,Electrode-Box-A,13,106,153,0
Khoai-tay-2,Naive,1,21,68,0
Khoai-tay-2,Naive,2,6,79,0
Khoai-tay-2,Naive,3,0,83,0
Khoai-tay-2,Naive,4,28,87,0
Khoai-tay-2,Naive,5,31,125,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
Khoai-tay-2,Naive,11,102,154,0
Khoai-tay-2,Naive,12,95,144,0
Khoai-tay-2,Naive,13,77,149,0
OM-2,Naive,0,1,7,0
OM-2,Naive,1,11,33,0
OM-2,Naive,2,19,62,0
OM-2,Naive,3,29,117,0
OM-2,Naive,4,73,126,0
OM-2,Naive,5,53,135,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
OM-2,Naive,11,60,133,0
OM-2,Naive,12,58,142,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-1,Electrode-Box-B2,4,75,136,1
Root-beer-1,Electrode-Box-B2,5,64,133,1
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
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
Root-beer-2,Electrode-Box-A2,4,60,140,0
Root-beer-2,Electrode-Box-A2,5,84,147,0
Vu-vuong,Naive,0,18,61,0
Vu-vuong,Naive,1,35,91,0
Vu-vuong,Naive,2,61,127,0
Vu-vuong,Naive,3,34,146,0
Vu-vuong,Naive,4,61,141,0
Vu-vuong,Naive,5,37,151,0
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
Vu-vuong,Naive,11,89,158,0
Vu-vuong,Naive,12,97,154,0
Vu-vuong,Naive,13,93,145,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-1 Electrode-Box-B2 4 70 127 1
7 Banh-mi-1 Electrode-Box-B2 5 102 142 1
8 Banh-mi-1 Electrode-Box-B2 6 90 131 1
9 Banh-mi-1 Electrode-Box-B2 7 109 148 1
10 Banh-mi-1 Electrode-Box-B2 8 104 137 1
11 Banh-mi-1 Electrode-Box-B2 9 119 150 1
12 Banh-mi-1 Electrode-Box-B2 10 121 158 1
13 Banh-mi-1 Electrode-Box-B2 11 121 148 1
14 Banh-mi-1 Electrode-Box-B2 12 120 149 1
15 Banh-mi-1 Electrode-Box-B2 13 135 154 1
16 Banh-mi-2 Electrode-Box-A2 0 25 97 0
17 Banh-mi-2 Electrode-Box-A2 1 22 101 0
18 Banh-mi-2 Electrode-Box-A2 2 22 119 0
19 Banh-mi-2 Electrode-Box-A2 3 29 118 0
20 Banh-mi-2 Electrode-Box-A2 4 27 136 0
21 Banh-mi-2 Electrode-Box-A2 5 43 146 0
22 Banh-mi-2 Electrode-Box-A2 6 74 146 0
23 Banh-mi-2 Electrode-Box-A2 7 70 148 0
24 Banh-mi-2 Electrode-Box-A2 8 65 130 0
25 Banh-mi-2 Electrode-Box-A2 9 79 151 0
26 Banh-mi-2 Electrode-Box-A2 10 93 152 0
27 Egg-tart-1 Electrode-Box-B2 0 7 56 1
28 Egg-tart-1 Electrode-Box-B2 1 16 78 1
29 Egg-tart-1 Electrode-Box-B2 2 23 103 1
30 Egg-tart-1 Electrode-Box-B2 3 63 120 1
31 Egg-tart-1 Electrode-Box-B2 4 69 132 1
32 Egg-tart-1 Electrode-Box-B2 5 83 136 1
33 Egg-tart-1 Electrode-Box-B2 6 71 142 1
34 Egg-tart-1 Electrode-Box-B2 7 79 138 1
35 Egg-tart-1 Electrode-Box-B2 8 98 142 1
36 Egg-tart-1 Electrode-Box-B2 9 89 139 1
37 Egg-tart-1 Electrode-Box-B2 10 96 143 1
38 Egg-tart-1 Electrode-Box-B2 11 96 148 1
39 Egg-tart-1 Electrode-Box-B2 12 101 156 1
40 Egg-tart-1 Electrode-Box-B2 13 103 152 1
41 Egg-tart-2 Electrode-Box-A2 0 9 32 0
42 Egg-tart-2 Electrode-Box-A2 1 2 38 0
43 Egg-tart-2 Electrode-Box-A2 2 31 93 0
44 Egg-tart-2 Electrode-Box-A2 3 44 101 0
45 Egg-tart-2 Electrode-Box-A2 4 54 131 0
46 Egg-tart-2 Electrode-Box-A2 5 84 139 0
47 Egg-tart-2 Electrode-Box-A2 6 85 145 0
48 Egg-tart-2 Electrode-Box-A2 7 79 143 0
49 Egg-tart-2 Electrode-Box-A2 8 76 131 0
50 Egg-tart-2 Electrode-Box-A2 9 88 149 0
51 Egg-tart-2 Electrode-Box-A2 10 81 151 0
52 Egg-tart-2 Electrode-Box-A2 11 78 152 0
53 Egg-tart-2 Electrode-Box-A2 12 96 155 0
54 Egg-tart-2 Electrode-Box-A2 13 84 155 0
55 Khoai-lang-2 Naive 0 0 0 0
56 Khoai-lang-2 Naive 1 0 0 0
57 Khoai-lang-2 Naive 2 10 47 0
58 Khoai-lang-2 Naive 3 11 52 0
59 Khoai-lang-2 Naive 4 9 56 0
60 Khoai-lang-2 Naive 5 34 95 0
61 Khoai-lang-2 Naive 6 21 72 0
62 Khoai-lang-2 Naive 7 23 99 0
63 Khoai-lang-2 Naive 8 64 136 0
64 Khoai-lang-2 Naive 9 75 131 0
65 Khoai-lang-2 Naive 10 63 134 0
66 Khoai-lang-2 Naive 11 59 139 0
67 Khoai-lang-2 Naive 12 51 129 0
68 Khoai-lang-2 Naive 13 73 143 0
69 Khoai-tay-1 Electrode-Box-A 0 14 62 0
70 Khoai-tay-1 Electrode-Box-A 1 22 83 0
71 Khoai-tay-1 Electrode-Box-A 2 6 79 0
72 Khoai-tay-1 Electrode-Box-A 3 28 97 0
73 Khoai-tay-1 Electrode-Box-A 4 60 134 0
74 Khoai-tay-1 Electrode-Box-A 5 75 138 0
75 Khoai-tay-1 Electrode-Box-A 6 81 137 0
76 Khoai-tay-1 Electrode-Box-A 7 78 147 0
77 Khoai-tay-1 Electrode-Box-A 8 91 132 0
78 Khoai-tay-1 Electrode-Box-A 9 99 146 0
79 Khoai-tay-1 Electrode-Box-A 10 94 143 0
80 Khoai-tay-1 Electrode-Box-A 11 110 156 0
81 Khoai-tay-1 Electrode-Box-A 12 105 143 0
82 Khoai-tay-1 Electrode-Box-A 13 106 153 0
83 Khoai-tay-2 Naive 1 21 68 0
84 Khoai-tay-2 Naive 2 6 79 0
85 Khoai-tay-2 Naive 3 0 83 0
86 Khoai-tay-2 Naive 4 28 87 0
87 Khoai-tay-2 Naive 5 31 125 0
88 Khoai-tay-2 Naive 6 62 144 0
89 Khoai-tay-2 Naive 7 87 141 0
90 Khoai-tay-2 Naive 8 105 152 0
91 Khoai-tay-2 Naive 9 75 148 0
92 Khoai-tay-2 Naive 10 101 149 0
93 Khoai-tay-2 Naive 11 102 154 0
94 Khoai-tay-2 Naive 12 95 144 0
95 Khoai-tay-2 Naive 13 77 149 0
96 OM-2 Naive 0 1 7 0
97 OM-2 Naive 1 11 33 0
98 OM-2 Naive 2 19 62 0
99 OM-2 Naive 3 29 117 0
100 OM-2 Naive 4 73 126 0
101 OM-2 Naive 5 53 135 0
102 OM-2 Naive 6 73 138 0
103 OM-2 Naive 7 80 131 0
104 OM-2 Naive 8 91 141 0
105 OM-2 Naive 9 90 135 0
106 OM-2 Naive 10 95 142 0
107 OM-2 Naive 11 60 133 0
108 OM-2 Naive 12 58 142 0
109 Root-beer-1 Electrode-Box-B2 0 11 85 1
110 Root-beer-1 Electrode-Box-B2 1 18 76 1
111 Root-beer-1 Electrode-Box-B2 2 40 105 1
112 Root-beer-1 Electrode-Box-B2 3 55 134 1
113 Root-beer-1 Electrode-Box-B2 4 75 136 1
114 Root-beer-1 Electrode-Box-B2 5 64 133 1
115 Root-beer-1 Electrode-Box-B2 6 104 139 1
116 Root-beer-1 Electrode-Box-B2 7 98 148 1
117 Root-beer-1 Electrode-Box-B2 8 81 145 1
118 Root-beer-1 Electrode-Box-B2 9 89 156 1
119 Root-beer-1 Electrode-Box-B2 10 105 158 1
120 Root-beer-2 Electrode-Box-A2 0 22 74 0
121 Root-beer-2 Electrode-Box-A2 1 31 87 0
122 Root-beer-2 Electrode-Box-A2 2 49 134 0
123 Root-beer-2 Electrode-Box-A2 3 31 89 0
124 Root-beer-2 Electrode-Box-A2 4 60 140 0
125 Root-beer-2 Electrode-Box-A2 5 84 147 0
126 Vu-vuong Naive 0 18 61 0
127 Vu-vuong Naive 1 35 91 0
128 Vu-vuong Naive 2 61 127 0
129 Vu-vuong Naive 3 34 146 0
130 Vu-vuong Naive 4 61 141 0
131 Vu-vuong Naive 5 37 151 0
132 Vu-vuong Naive 6 49 131 0
133 Vu-vuong Naive 7 65 149 0
134 Vu-vuong Naive 8 67 141 0
135 Vu-vuong Naive 9 73 140 0
136 Vu-vuong Naive 10 72 131 0
137 Vu-vuong Naive 11 89 158 0
138 Vu-vuong Naive 12 97 154 0
139 Vu-vuong Naive 13 93 145 0