how to run post hoc after using fitglme
4 次查看(过去 30 天)
显示 更早的评论
Hi all, I have defined a liner mixed-model in Matlab as below: glme = fitglme(T,'Z ~ 1+ race + section + section*race + (1|sample:eyeball)','DummyVarCoding','effects'); I can perform ANOVA and calculate p-values but I don't know how to perform a pairwise comparison with the ANOVA results as multcompare. I doesn't accept fitglme output. I tried to use coefTest but I was lost when I tried to define the contrasts matrix for the interactions. does some know how to perform posthoc analysis for fitglme results or how to define contrasts matrix for coefTest for 2 or 3-way interactions? thanks
0 个评论
回答(1 个)
John Hartman
2019-6-27
Hope this works for you! https://www.mathworks.com/matlabcentral/fileexchange/71970-emmeans
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!