==============================================================================
VARIATION: boxa_b2_d6_10   [metric: success COUNT]
==============================================================================
model: behavior ~ stim + day + stim:day + (1|rat)   (behavior = success COUNT)
day = training day within window (0 = first analyzed day)
treatment (stim=1): Electrode-Box-A, Electrode-Box-B2
control   (stim=0): Electrode-Box-A2
N = 6 rats, 30 sessions   raw day coverage: treat 6..10, control 6..10
(equal day coverage over this window)

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

Linear mixed-effects model fit by ML

Model information:
    Number of observations              30
    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
    231.05    239.46    -109.52          219.05  

Fixed effects coefficients (95% CIs):
    Name                   Estimate    SE        tStat      DF    pValue    
    {'(Intercept)'}        74.2        6.2618      11.85    26    5.5401e-12
    {'day'        }         2.4        1.8164     1.3213    26        0.1979
    {'stim'       }          12        7.6691     1.5647    26       0.12974
    {'day:stim'   }         1.9        2.2246    0.85409    26       0.40085


    Lower      Upper 
     61.329    87.071
    -1.3336    6.1336
     -3.764    27.764
    -2.6727    6.4727

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


    Lower     Upper
    2.9021    13.38

Group: Error
    Name               Estimate    Lower     Upper 
    {'Res Std'}        8.123       6.1215    10.779


effect                     t(df) / F(df1)     p (resid)    Satterthwaite: p (df)
----------------------------------------------------------------------------
stim x day (interaction)   t(26)=  0.85 F(1)=  0.729  p=0.4009    p=0.4015 (df=24)
day (learning)             t(26)=  1.32 F(1)=  1.746  p=0.1979    p=0.1989 (df=24)
stim (main, window start)  t(26)=  1.56 F(1)=  2.448  p=0.1297    p=0.142 (df=13)
interaction 95% CI: [-2.673, +6.473]
HONEST LME (per-animal random slope, day|rat): interaction F(1,6.0)=0.61, p=0.4631
  (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.4009, slope diff=+1.9)
Paper (N=24, count): interaction t(227)=2.68, F(1)=7.12, p=0.008.
