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

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Experiments DB Dev
2026-07-24 02:32:52 -04:00
parent 6ba21a1a35
commit 0e16690c8f
72 changed files with 1875 additions and 897 deletions
@@ -0,0 +1,68 @@
==============================================================================
VARIATION: naive_boxa_d6_10 [metric: success RATE (success/attempts)]
==============================================================================
model: behavior ~ stim + day + stim:day + (1|rat) (behavior = success RATE (success/attempts))
day = training day within window (0 = first analyzed day)
treatment (stim=1): Electrode-Box-B2
control (stim=0): Electrode-Box-A, Electrode-Box-A2, Naive
N = 10 rats, 50 sessions raw day coverage: treat 6..10, control 6..10
(equal day coverage over this window)
==============================================================================
FULL MODEL SUMMARY -- fitlme
==============================================================================
Linear mixed-effects model fit by ML
Model information:
Number of observations 50
Fixed effects coefficients 4
Random effects coefficients 10
Covariance parameters 2
Formula:
behavior ~ 1 + day*stim + (1 | rat)
Model fit statistics:
AIC BIC LogLikelihood Deviance
-102.02 -90.545 57.008 -114.02
Fixed effects coefficients (95% CIs):
Name Estimate SE tStat DF pValue
{'(Intercept)'} 0.4775 0.030961 15.422 46 8.4559e-20
{'day' } 0.033319 0.0077275 4.3117 46 8.4717e-05
{'stim' } 0.1661 0.056527 2.9385 46 0.0051416
{'day:stim' } -0.021119 0.014108 -1.4969 46 0.14124
Lower Upper
0.41518 0.53982
0.017764 0.048873
0.052321 0.27989
-0.049518 0.0072795
Random effects covariance parameters (95% CIs):
Group: rat (10 Levels)
Name1 Name2 Type Estimate
{'(Intercept)'} {'(Intercept)'} {'std'} 0.064825
Lower Upper
0.038261 0.10983
Group: Error
Name Estimate Lower Upper
{'Res Std'} 0.064653 0.05193 0.080492
effect t(df) / F(df1) p (resid) Satterthwaite: p (df)
----------------------------------------------------------------------------
stim x day (interaction) t(46)= -1.50 F(1)= 2.241 p=0.1412 p=0.1423 (df=40)
day (learning) t(46)= 4.31 F(1)= 18.591 p=8.472e-05 p=0.0001028 (df=40)
stim (main, window start) t(46)= 2.94 F(1)= 8.635 p=0.005142 p=0.009071 (df=17)
interaction 95% CI: [-0.04952, +0.00728]
HONEST LME (per-animal random slope, day|rat): interaction F(1,10.0)=1.71, p=0.2198
(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 n.s. -- slopes parallel (no differential learning rate) (p=0.1412, slope diff=-0.02112)
Paper (N=24, count): interaction t(227)=2.68, F(1)=7.12, p=0.008.