Effect Size in fitglme

20 views (last 30 days)
Laurie König
Laurie König on 24 Nov 2025 at 10:27
Edited: dpb on 24 Nov 2025 at 16:22
Hey, I am using a model which I have estimated with fitglme. I want to report effect sizes and confidence intervals. Would the best way be to report OR terms and their respective intervals?
I am calculating them the following way:
[beta,~,stats] = fixedEffects(glme_best);
CI = coefCI(glme_best);
names = glme_best.CoefficientNames(:);
OR = exp(beta);
CI_OR = exp(CI);
Is that correct or is there a better way to directly get OR terms in Matlab?
Best!
  2 Comments
Torsten
Torsten ungefär 4 timmar ago
We must know more about your model in order to understand why you take "exp" of beta and CI.
Laurie König
Laurie König ungefär 4 timmar ago
opts = {'Distribution','Binomial','Link','logit','FitMethod','Laplace'};
formula_fix = 'Correct ~ 1 + Trial_z';
mA = fitglme(T, [formula_fix, ' + (1|Subj)'], opts{:}); --> That would be an example for a model

Sign in to comment.

Answers (0)

Categories

Find more on MATLAB Report Generator in Help Center and File Exchange

Products


Release

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!