feat(matlab): print full native fitlme/fitglme summary in every scenario
Add tdcs_model_summary as the single place that renders a fitted model verbatim (disp(model) with the Command-Window <strong> markup stripped), and route every report through it so all scenarios emit the complete model-fitting output: - tdcs_report: adds the learning-rate GLMM's full summary (count/rate already had theirs); localCleanDisp now delegates to the shared helper. - tdcs_lme_report / tdcs_paper_lme: embed the full fitlme summary before the curated effect table. - tdcs_phase_lme: appends each phase's full fitlme summary. Tests: tReport asserts 3 native summaries in a GLMM report; tLme asserts the lme_*/paper_*/phase_* reports embed 1/1/3 summaries with markup stripped. Suite 39/39. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,155 @@
|
||||
==============================================================================
|
||||
PHASED days x tDCS LME -- mergeB2 (Box-B2 vs Box-A2)
|
||||
==============================================================================
|
||||
model per phase: success ~ dayp*tDCS + (1|subject) [dayp = day - phaseStart]
|
||||
|
||||
phase N A2slope B2slope day p tDCS(lvl) p interaction p slopeDiff [95% CI]
|
||||
--------------------------------------------------------------------------------------------
|
||||
0-5 8 9.86 14.65 2.9e-08 0.399 0.013 +4.79 [+1.06, +8.53]
|
||||
6-10 7 2.40 4.80 0.18 0.142 0.253 +2.40 [-1.80, +6.60]
|
||||
6-13 7 1.71 4.42 0.083 0.127 0.018 +2.71 [+0.50, +4.93]
|
||||
|
||||
Note: the interaction p (and CI) use fitlme observation-level DF and are
|
||||
ANTICONSERVATIVE at these small subject counts (see tdcs_power_sim). The early
|
||||
phase carries the Box-B2 faster-acquisition signal; late phases converge.
|
||||
==============================================================================
|
||||
FULL MODEL SUMMARY -- phase 0-5: success ~ dayp*tDCS + (1|subject)
|
||||
==============================================================================
|
||||
|
||||
Linear mixed-effects model fit by ML
|
||||
|
||||
Model information:
|
||||
Number of observations 48
|
||||
Fixed effects coefficients 4
|
||||
Random effects coefficients 8
|
||||
Covariance parameters 2
|
||||
|
||||
Formula:
|
||||
success ~ 1 + dayp*tDCS + (1 | subject)
|
||||
|
||||
Model fit statistics:
|
||||
AIC BIC LogLikelihood Deviance
|
||||
383.06 394.29 -185.53 371.06
|
||||
|
||||
Fixed effects coefficients (95% CIs):
|
||||
Name Estimate SE tStat DF pValue
|
||||
{'(Intercept)'} 12.524 5.5254 2.2666 44 0.028385
|
||||
{'dayp' } 9.8571 1.4654 6.7268 44 2.8783e-08
|
||||
{'tDCS' } -5.9524 6.9892 -0.85166 44 0.39902
|
||||
{'dayp:tDCS' } 4.7943 1.8536 2.5865 44 0.013079
|
||||
|
||||
|
||||
Lower Upper
|
||||
1.3881 23.66
|
||||
6.9039 12.81
|
||||
-20.038 8.1334
|
||||
1.0587 8.5299
|
||||
|
||||
Random effects covariance parameters (95% CIs):
|
||||
Group: subject (8 Levels)
|
||||
Name1 Name2 Type Estimate
|
||||
{'(Intercept)'} {'(Intercept)'} {'std'} 5.7044
|
||||
|
||||
|
||||
Lower Upper
|
||||
2.6066 12.484
|
||||
|
||||
Group: Error
|
||||
Name Estimate Lower Upper
|
||||
{'Res Std'} 10.618 8.5282 13.219
|
||||
|
||||
|
||||
==============================================================================
|
||||
FULL MODEL SUMMARY -- phase 6-10: success ~ dayp*tDCS + (1|subject)
|
||||
==============================================================================
|
||||
|
||||
Linear mixed-effects model fit by ML
|
||||
|
||||
Model information:
|
||||
Number of observations 35
|
||||
Fixed effects coefficients 4
|
||||
Random effects coefficients 7
|
||||
Covariance parameters 2
|
||||
|
||||
Formula:
|
||||
success ~ 1 + dayp*tDCS + (1 | subject)
|
||||
|
||||
Model fit statistics:
|
||||
AIC BIC LogLikelihood Deviance
|
||||
264.22 273.56 -126.11 252.22
|
||||
|
||||
Fixed effects coefficients (95% CIs):
|
||||
Name Estimate SE tStat DF pValue
|
||||
{'(Intercept)'} 74.2 5.8956 12.586 31 1.0133e-13
|
||||
{'dayp' } 2.4 1.7415 1.3781 31 0.17803
|
||||
{'tDCS' } 10.52 6.9757 1.5081 31 0.14166
|
||||
{'dayp:tDCS' } 2.4 2.0606 1.1647 31 0.25302
|
||||
|
||||
|
||||
Lower Upper
|
||||
62.176 86.224
|
||||
-1.1518 5.9518
|
||||
-3.7071 24.747
|
||||
-1.8026 6.6026
|
||||
|
||||
Random effects covariance parameters (95% CIs):
|
||||
Group: subject (7 Levels)
|
||||
Name1 Name2 Type Estimate
|
||||
{'(Intercept)'} {'(Intercept)'} {'std'} 5.7551
|
||||
|
||||
|
||||
Lower Upper
|
||||
2.7955 11.848
|
||||
|
||||
Group: Error
|
||||
Name Estimate Lower Upper
|
||||
{'Res Std'} 7.7883 5.9937 10.12
|
||||
|
||||
|
||||
==============================================================================
|
||||
FULL MODEL SUMMARY -- phase 6-13: success ~ dayp*tDCS + (1|subject)
|
||||
==============================================================================
|
||||
|
||||
Linear mixed-effects model fit by ML
|
||||
|
||||
Model information:
|
||||
Number of observations 50
|
||||
Fixed effects coefficients 4
|
||||
Random effects coefficients 7
|
||||
Covariance parameters 2
|
||||
|
||||
Formula:
|
||||
success ~ 1 + dayp*tDCS + (1 | subject)
|
||||
|
||||
Model fit statistics:
|
||||
AIC BIC LogLikelihood Deviance
|
||||
362.57 374.04 -175.28 350.57
|
||||
|
||||
Fixed effects coefficients (95% CIs):
|
||||
Name Estimate SE tStat DF pValue
|
||||
{'(Intercept)'} 75.168 5.6188 13.378 46 1.8212e-17
|
||||
{'dayp' } 1.712 0.96716 1.7701 46 0.083338
|
||||
{'tDCS' } 10.291 6.6299 1.5522 46 0.12747
|
||||
{'dayp:tDCS' } 2.7116 1.1009 2.4631 46 0.017575
|
||||
|
||||
|
||||
Lower Upper
|
||||
63.858 86.478
|
||||
-0.23482 3.6588
|
||||
-3.0544 23.636
|
||||
0.49565 4.9275
|
||||
|
||||
Random effects covariance parameters (95% CIs):
|
||||
Group: subject (7 Levels)
|
||||
Name1 Name2 Type Estimate
|
||||
{'(Intercept)'} {'(Intercept)'} {'std'} 6.379
|
||||
|
||||
|
||||
Lower Upper
|
||||
3.4793 11.695
|
||||
|
||||
Group: Error
|
||||
Name Estimate Lower Upper
|
||||
{'Res Std'} 7.0508 5.7111 8.7047
|
||||
|
||||
|
||||
Reference in New Issue
Block a user