analysis(matlab): rate + count outputs, variation batch 1

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Experiments DB Dev
2026-07-24 02:32:51 -04:00
parent 1009f263e8
commit 0a438a4649
72 changed files with 1873 additions and 895 deletions
@@ -1,5 +1,5 @@
==============================================================================
VARIATION: boxa_b2_d0_5
VARIATION: boxa_b2_d0_5 [metric: success COUNT]
==============================================================================
model: behavior ~ stim + day + stim:day + (1|rat) (behavior = success COUNT)
day = training day within window (0 = first analyzed day)
@@ -60,9 +60,9 @@ effect t(df) / F(df1) p (resid) Satterthwaite: p (df)
stim x day (interaction) t(38)= 2.28 F(1)= 5.206 p=0.02821 p=0.02871 (df=35)
day (learning) t(38)= 6.32 F(1)= 39.947 p=2.071e-07 p=2.928e-07 (df=35)
stim (main, window start) t(38)= -0.61 F(1)= 0.378 p=0.5425 p=0.5456 (df=20)
interaction 95% CI: [+0.53, +8.88]
interaction 95% CI: [+0.5306, +8.884]
HONEST LME (per-animal random slope, day|rat): interaction F(1,7.0)=2.92, p=0.131
(Satterthwaite DF ~= residual on this random-intercept model; the random-slope
model above is the honest learning-rate test -- DF collapses toward the animal count.)
INTERPRETATION: stim x day interaction SIGNIFICANT positive -- treatment improves FASTER (benefit accumulates) (p=0.02821, slope diff=+4.71)
Paper (N=24): interaction t(227)=2.68, F(1)=7.12, p=0.008.
INTERPRETATION: stim x day interaction SIGNIFICANT positive -- treatment improves FASTER (benefit accumulates) (p=0.02821, slope diff=+4.707)
Paper (N=24, count): interaction t(227)=2.68, F(1)=7.12, p=0.008.