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

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

Linear mixed-effects model fit by ML

Model information:
    Number of observations              36
    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
    -62.201    -52.7    37.1             -74.201 

Fixed effects coefficients (95% CIs):
    Name                   Estimate     SE          tStat       DF    pValue    
    {'(Intercept)'}           0.2186    0.042385      5.1574    32    1.2572e-05
    {'day'        }         0.043366    0.010845      3.9986    32     0.0003516
    {'stim'       }        -0.053758    0.059942    -0.89683    32       0.37651
    {'day:stim'   }         0.049022    0.015337      3.1962    32     0.0031273


    Lower       Upper   
     0.13226     0.30494
    0.021275    0.065457
    -0.17586     0.06834
     0.01778    0.080263

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


    Lower       Upper  
    0.019948    0.10804

Group: Error
    Name               Estimate    Lower       Upper  
    {'Res Std'}        0.078581    0.061014    0.10121


effect                     t(df) / F(df1)     p (resid)    Satterthwaite: p (df)
----------------------------------------------------------------------------
stim x day (interaction)   t(32)=  3.20 F(1)= 10.216  p=0.003127    p=0.00327 (df=30)
day (learning)             t(32)=  4.00 F(1)= 15.989  p=0.0003516    p=0.0003833 (df=30)
stim (main, window start)  t(32)= -0.90 F(1)=  0.804  p=0.3765    p=0.3834 (df=16)
interaction 95% CI: [+0.01778, +0.08026]
HONEST LME (per-animal random slope, day|rat): interaction F(1,7.1)=6.49, p=0.0379
  (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.003127, slope diff=+0.04902)
Paper (N=24, count): interaction t(227)=2.68, F(1)=7.12, p=0.008.
