==============================================================================
VARIATION: naive_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-A2, Naive
N = 10 rats, 57 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              57
    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
    -81.991    -69.732    46.995           -93.991 

Fixed effects coefficients (95% CIs):
    Name                   Estimate     SE           tStat       DF
    {'(Intercept)'}          0.21873      0.03639      6.0107    53
    {'day'        }         0.030326    0.0094955      3.1937    53
    {'stim'       }        -0.053886     0.062912    -0.85653    53
    {'day:stim'   }         0.062061     0.016406      3.7829    53


    pValue        Lower       Upper   
    1.7409e-07     0.14574     0.29172
      0.002365     0.01128    0.049372
       0.39556    -0.18007    0.072299
    0.00039586    0.029156    0.094967

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


    Lower       Upper  
    0.026757    0.11134

Group: Error
    Name               Estimate    Lower       Upper  
    {'Res Std'}        0.096936    0.079103    0.11879


effect                     t(df) / F(df1)     p (resid)    Satterthwaite: p (df)
----------------------------------------------------------------------------
stim x day (interaction)   t(53)=  3.78 F(1)= 14.310  p=0.0003959    p=0.0004381 (df=47)
day (learning)             t(53)=  3.19 F(1)= 10.200  p=0.002365    p=0.002483 (df=48)
stim (main, window start)  t(53)= -0.86 F(1)=  0.734  p=0.3956    p=0.3992 (df=27)
interaction 95% CI: [+0.02916, +0.09497]
HONEST LME (per-animal random slope, day|rat): interaction F(1,11.5)=11.53, p=0.005637
  (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.0003959, slope diff=+0.06206)
Paper (N=24, count): interaction t(227)=2.68, F(1)=7.12, p=0.008.
