==============================================================================
VARIATION: matched_current_d0_3   [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
N = 6 rats, 24 sessions   raw day coverage: treat 0..3, control 0..3
(equal day coverage over this window)

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

Linear mixed-effects model fit by ML

Model information:
    Number of observations              24
    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
    -40.724    -33.656    26.362           -52.724 

Fixed effects coefficients (95% CIs):
    Name                   Estimate     SE          tStat      DF    pValue   
    {'(Intercept)'}          0.23952    0.039567     6.0535    20    6.443e-06
    {'day'        }         0.027914    0.020245     1.3788    20      0.18317
    {'stim'       }        -0.089781    0.055956    -1.6045    20      0.12428
    {'day:stim'   }         0.077228     0.02863     2.6974    20     0.013857


    Lower        Upper   
      0.15698     0.32205
    -0.014316    0.070144
      -0.2065    0.026941
     0.017506     0.13695

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


    Lower         Upper  
    0.00093276    0.42155

Group: Error
    Name               Estimate    Lower       Upper 
    {'Res Std'}        0.078408    0.056558    0.1087


effect                     t(df) / F(df1)     p (resid)    Satterthwaite: p (df)
----------------------------------------------------------------------------
stim x day (interaction)   t(20)=  2.70 F(1)=  7.276  p=0.01386    p=0.01473 (df=18)
day (learning)             t(20)=  1.38 F(1)=  1.901  p=0.1832    p=0.1848 (df=18)
stim (main, window start)  t(20)= -1.60 F(1)=  2.574  p=0.1243    p=0.1235 (df=21)
interaction 95% CI: [+0.01751, +0.1369]
HONEST LME (per-animal random slope, day|rat): interaction F(1,18.0)=7.28, p=0.01473
  (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.01386, slope diff=+0.07723)
Paper (N=24, count): interaction t(227)=2.68, F(1)=7.12, p=0.008.
