==============================================================================
VARIATION: boxa_a2_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
control   (stim=0): Electrode-Box-A, 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
    -124.36    -110.7    68.18            -136.36 

Fixed effects coefficients (95% CIs):
    Name                   Estimate     SE           tStat      DF    pValue    
    {'(Intercept)'}          0.21277     0.032537     6.5394    68    9.4885e-09
    {'day'        }          0.04572    0.0046771     9.7753    68    1.3713e-14
    {'stim'       }         0.042139     0.049417    0.85273    68        0.3968
    {'day:stim'   }        0.0072048    0.0067664     1.0648    68       0.29074


    Lower         Upper   
       0.14785      0.2777
      0.036387    0.055053
     -0.056471     0.14075
    -0.0062973    0.020707

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


    Lower       Upper   
    0.018248    0.089857

Group: Error
    Name               Estimate    Lower       Upper  
    {'Res Std'}        0.088826    0.074767    0.10553


effect                     t(df) / F(df1)     p (resid)    Satterthwaite: p (df)
----------------------------------------------------------------------------
stim x day (interaction)   t(68)=  1.06 F(1)=  1.134  p=0.2907    p=0.2908 (df=67)
day (learning)             t(68)=  9.78 F(1)= 95.556  p=1.371e-14    p=1.275e-14 (df=68)
stim (main, window start)  t(68)=  0.85 F(1)=  0.727  p=0.3968    p=0.4044 (df=19)
interaction 95% CI: [-0.006297, +0.02071]
HONEST LME (per-animal random slope, day|rat): interaction F(1,29.1)=0.97, p=0.3332
  (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 n.s. -- slopes parallel (no differential learning rate) (p=0.2907, slope diff=+0.007205)
Paper (N=24, count): interaction t(227)=2.68, F(1)=7.12, p=0.008.
