==============================================================================
VARIATION: naive_a2_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
control   (stim=0): Electrode-Box-A2, Naive
N = 10 rats, 122 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             122
    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
    -181.33    -164.5    96.663           -193.33 

Fixed effects coefficients (95% CIs):
    Name                   Estimate    SE           tStat     DF     pValue    
    {'(Intercept)'}         0.23325     0.027564    8.4623    118    8.2776e-14
    {'day'        }        0.031488    0.0030917    10.184    118    7.3141e-18
    {'stim'       }        0.055421     0.048873     1.134    118        0.2591
    {'day:stim'   }        0.012089    0.0053578    2.2563    118      0.025894


    Lower        Upper   
      0.17867     0.28783
     0.025365     0.03761
    -0.041361      0.1522
    0.0014788    0.022699

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


    Lower       Upper   
    0.022679    0.086139

Group: Error
    Name               Estimate    Lower       Upper 
    {'Res Std'}        0.10453     0.091674    0.1192


effect                     t(df) / F(df1)     p (resid)    Satterthwaite: p (df)
----------------------------------------------------------------------------
stim x day (interaction)   t(118)=  2.26 F(1)=  5.091  p=0.02589    p=0.02593 (df=116)
day (learning)             t(118)= 10.18 F(1)=103.724  p=7.314e-18    p=6.719e-18 (df=119)
stim (main, window start)  t(118)=  1.13 F(1)=  1.286  p=0.2591    p=0.2666 (df=27)
interaction 95% CI: [+0.001479, +0.0227]
HONEST LME (per-animal random slope, day|rat): interaction F(1,97.3)=5.06, p=0.02667
  (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.02589, slope diff=+0.01209)
Paper (N=24, count): interaction t(227)=2.68, F(1)=7.12, p=0.008.
