==============================================================================
VARIATION: right_only_d0_13   [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, Right-Electrode
control   (stim=0): Electrode-Box-A2
N = 7 rats, 84 sessions   raw day coverage: treat 0..13, control 0..13
(equal day coverage over this window)

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

Linear mixed-effects model fit by ML

Model information:
    Number of observations              84
    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
    -145.93    -131.35    78.967           -157.93 

Fixed effects coefficients (95% CIs):
    Name                   Estimate     SE           tStat      DF    pValue    
    {'(Intercept)'}          0.25632     0.035875     7.1447    80    3.7358e-10
    {'day'        }         0.032358    0.0046124     7.0154    80    6.6273e-10
    {'stim'       }        0.0062182     0.046891    0.13261    80       0.89483
    {'day:stim'   }         0.013512    0.0056067       2.41    80      0.018249


    Lower        Upper   
      0.18492     0.32771
     0.023179    0.041537
    -0.087097    0.099534
    0.0023542     0.02467

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


    Lower       Upper   
    0.017826    0.083864

Group: Error
    Name               Estimate    Lower       Upper 
    {'Res Std'}        0.090086    0.076927    0.1055


effect                     t(df) / F(df1)     p (resid)    Satterthwaite: p (df)
----------------------------------------------------------------------------
stim x day (interaction)   t(80)=  2.41 F(1)=  5.808  p=0.01825    p=0.01818 (df=82)
day (learning)             t(80)=  7.02 F(1)= 49.216  p=6.627e-10    p=5.568e-10 (df=83)
stim (main, window start)  t(80)=  0.13 F(1)=  0.018  p=0.8948    p=0.8959 (df=19)
interaction 95% CI: [+0.002354, +0.02467]
HONEST LME (per-animal random slope, day|rat): interaction F(1,81.6)=5.93, p=0.01709
  (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.01825, slope diff=+0.01351)
Paper (N=24, count): interaction t(227)=2.68, F(1)=7.12, p=0.008.
