==============================================================================
VARIATION: boxa_b2_d0_5   [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-A, Electrode-Box-B2
control   (stim=0): Electrode-Box-A2
N = 7 rats, 42 sessions   raw day coverage: treat 0..5, control 0..5
(equal day coverage over this window)

==============================================================================
FULL MODEL SUMMARY -- fitlme
==============================================================================

Linear mixed-effects model fit by ML

Model information:
    Number of observations              42
    Fixed effects coefficients           4
    Random effects coefficients          7
    Covariance parameters                2

Formula:
    behavior ~ 1 + day*stim + (1 | rat)

Model fit statistics:
    AIC       BIC        LogLikelihood    Deviance
    -68.33    -57.904    40.165           -80.33  

Fixed effects coefficients (95% CIs):
    Name                   Estimate     SE          tStat      DF    pValue    
    {'(Intercept)'}           0.2186    0.045229     4.8332    38    2.2327e-05
    {'day'        }         0.043366    0.011725     3.6987    38    0.00068267
    {'stim'       }        -0.059971    0.059832    -1.0023    38       0.32253
    {'day:stim'   }         0.042705     0.01551     2.7533    38     0.0089978


    Lower       Upper   
     0.12704     0.31016
     0.01963    0.067101
     -0.1811    0.061153
    0.011306    0.074103

Random effects covariance parameters (95% CIs):
Group: rat (7 Levels)
    Name1                  Name2                  Type           Estimate
    {'(Intercept)'}        {'(Intercept)'}        {'std'}        0.048546


    Lower       Upper  
    0.021809    0.10806

Group: Error
    Name               Estimate    Lower       Upper  
    {'Res Std'}        0.084953    0.067211    0.10738


effect                     t(df) / F(df1)     p (resid)    Satterthwaite: p (df)
----------------------------------------------------------------------------
stim x day (interaction)   t(38)=  2.75 F(1)=  7.581  p=0.008998    p=0.00929 (df=35)
day (learning)             t(38)=  3.70 F(1)= 13.680  p=0.0006827    p=0.0007391 (df=35)
stim (main, window start)  t(38)= -1.00 F(1)=  1.005  p=0.3225    p=0.3289 (df=19)
interaction 95% CI: [+0.01131, +0.0741]
HONEST LME (per-animal random slope, day|rat): interaction F(1,8.8)=5.05, p=0.05179
  (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.008998, slope diff=+0.0427)
Paper (N=24, count): interaction t(227)=2.68, F(1)=7.12, p=0.008.
