==============================================================================
VARIATION: boxa_a2_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-B2
control   (stim=0): Electrode-Box-A, 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
    -70.223    -59.797    41.112           -82.223 

Fixed effects coefficients (95% CIs):
    Name                   Estimate     SE          tStat       DF    pValue    
    {'(Intercept)'}          0.19895    0.036526      5.4467    38    3.2657e-06
    {'day'        }         0.049304    0.010134      4.8651    38    2.0216e-05
    {'stim'       }        -0.034105    0.055794    -0.61127    38       0.54466
    {'day:stim'   }         0.043083     0.01548      2.7831    38      0.008341


    Lower       Upper   
       0.125     0.27289
    0.028788     0.06982
    -0.14705    0.078844
    0.011745    0.074421

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


    Lower       Upper  
    0.015473    0.10151

Group: Error
    Name               Estimate    Lower       Upper  
    {'Res Std'}        0.084789    0.067081    0.10717


effect                     t(df) / F(df1)     p (resid)    Satterthwaite: p (df)
----------------------------------------------------------------------------
stim x day (interaction)   t(38)=  2.78 F(1)=  7.746  p=0.008341    p=0.008621 (df=35)
day (learning)             t(38)=  4.87 F(1)= 23.669  p=2.022e-05    p=2.41e-05 (df=35)
stim (main, window start)  t(38)= -0.61 F(1)=  0.374  p=0.5447    p=0.5472 (df=22)
interaction 95% CI: [+0.01175, +0.07442]
HONEST LME (per-animal random slope, day|rat): interaction F(1,9.1)=5.64, p=0.0412
  (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.008341, slope diff=+0.04308)
Paper (N=24, count): interaction t(227)=2.68, F(1)=7.12, p=0.008.
