==============================================================================
VARIATION: right_only_d0_10   [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, 72 sessions   raw day coverage: treat 0..10, control 0..10
(equal day coverage over this window)

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

Linear mixed-effects model fit by ML

Model information:
    Number of observations              72
    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
    -130.99    -117.33    71.495           -142.99 

Fixed effects coefficients (95% CIs):
    Name                   Estimate      SE           tStat       DF
    {'(Intercept)'}           0.22977     0.037841      6.0719    68
    {'day'        }          0.040867    0.0053407       7.652    68
    {'stim'       }        0.00041563     0.049782    0.008349    68
    {'day:stim'   }          0.013934     0.006676      2.0872    68


    pValue        Lower         Upper   
    6.3632e-08       0.15426     0.30528
    9.3879e-11       0.03021    0.051524
       0.99336     -0.098922    0.099754
      0.040617    0.00061265    0.027256

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


    Lower       Upper  
    0.021261    0.09119

Group: Error
    Name               Estimate    Lower       Upper   
    {'Res Std'}        0.084023    0.070735    0.099809


effect                     t(df) / F(df1)     p (resid)    Satterthwaite: p (df)
----------------------------------------------------------------------------
stim x day (interaction)   t(68)=  2.09 F(1)=  4.357  p=0.04062    p=0.04064 (df=68)
day (learning)             t(68)=  7.65 F(1)= 58.553  p=9.388e-11    p=8.647e-11 (df=69)
stim (main, window start)  t(68)=  0.01 F(1)=  0.000  p=0.9934    p=0.9934 (df=17)
interaction 95% CI: [+0.0006126, +0.02726]
HONEST LME (per-animal random slope, day|rat): interaction F(1,67.1)=4.40, p=0.03968
  (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.04062, slope diff=+0.01393)
Paper (N=24, count): interaction t(227)=2.68, F(1)=7.12, p=0.008.
