LME and multiple comparisons

15 ビュー (過去 30 日間)
Chen Gafni
Chen Gafni 2016 年 6 月 17 日
回答済み: Paul 2020 年 8 月 5 日
Hello, I have a model with several categorical fixed factors, each having several levels. Fitlme reports confidence intervals and p values for n-1 levels of each fixed factor compared to a selected reference. How can I determine these values for other combinations of factor levels? (e.g., level 1 vs. level 2, level 1 vs. level 3, level 2 vs. level 3).
Thanks, Chen

回答 (2 件)

Peng Li
Peng Li 2020 年 8 月 5 日
If I understand your question correctly, you were asking a post hoc comparison issue? coefTest method of LinearMixedModel object could help with this. basically you need a comtrast matrix to indicate which two levels you'd like to compare.
Here is reference page for coefTest.

Paul
Paul 2020 年 8 月 5 日
Hi Chen,
You talk about confidence intervals and p-values, and how you can get those for other combinations/comparisons of levels. The answer about p-values I have given recently, here.
With regards to confidence intervals I'm not sure I can give you a satisfying answer, but I first want to ask you to clarify your question a bit more. Do you mean the confidence interval of the difference between level 1 and level 2, for example? There are ways to calculate this, but I'm not sure if this is at all useful in practice. I found it hard to determine a best way of doing this, and I found I had very little need for it in the end, so I never figured out exactly how to do it.
If you could explain what kind of confidence bounds you are talking about, exactly, and what you want to use them for, I can see if I can help you.
Best,
Paul

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by