==============================================================================
VARIATION: right_only_d6_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 = 6 rats, 42 sessions   raw day coverage: treat 6..13, control 6..13
(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          6
    Covariance parameters                2

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

Model fit statistics:
    AIC        BIC        LogLikelihood    Deviance
    -107.29    -96.867    59.646           -119.29 

Fixed effects coefficients (95% CIs):
    Name                   Estimate     SE           tStat      DF    pValue    
    {'(Intercept)'}          0.53543     0.038925     13.755    38    2.4576e-16
    {'day'        }        0.0034157    0.0070712    0.48304    38       0.63184
    {'stim'       }         0.077975     0.047524     1.6407    38        0.1091
    {'day:stim'   }         0.018776    0.0083266     2.2549    38      0.029981


    Lower        Upper   
      0.45663     0.61423
    -0.010899    0.017731
    -0.018233     0.17418
    0.0019195    0.035632

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


    Lower       Upper   
    0.021774    0.083895

Group: Error
    Name               Estimate    Lower       Upper   
    {'Res Std'}        0.051638    0.041022    0.065002


effect                     t(df) / F(df1)     p (resid)    Satterthwaite: p (df)
----------------------------------------------------------------------------
stim x day (interaction)   t(38)=  2.25 F(1)=  5.085  p=0.02998    p=0.03003 (df=38)
day (learning)             t(38)=  0.48 F(1)=  0.233  p=0.6318    p=0.6318 (df=38)
stim (main, window start)  t(38)=  1.64 F(1)=  2.692  p=0.1091    p=0.1287 (df=11)
interaction 95% CI: [+0.00192, +0.03563]
HONEST LME (per-animal random slope, day|rat): interaction F(1,4.0)=0.24, p=0.6492
  (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.02998, slope diff=+0.01878)
Paper (N=24, count): interaction t(227)=2.68, F(1)=7.12, p=0.008.
