Confidence intervals for fitlme

13 ビュー (過去 30 日間)
jjohn33
jjohn33 2020 年 2 月 2 日
回答済み: Myrtle42 2020 年 8 月 5 日
How can I plot the confidence intervals from the fitlme mixed model?
lme = fitlme(T1,' par ~ 1 + cov + (1 I ID)','FitMethod','REML');
Example:
Image 8.jpg
Results:
Fixed effects coefficients (95% CIs):
Name Estimate SE tStat DF pValue Lower Upper
{'(Intercept)'} 0.021452 0.0022428 9.5647 50 7.0315e-13 0.016947 0.025957
{'cov' } 0.00022556 0.00017193 1.3119 50 0.19554 -0.00011977 0.0005709

採用された回答

jjohn33
jjohn33 2020 年 2 月 3 日
The plot image is only showing for standard regression not included random for the intercept in this case. The lme. Coefficient is only one value and it is not calculated over the prediction line.

その他の回答 (2 件)

Jakob B. Nielsen
Jakob B. Nielsen 2020 年 2 月 3 日
If you look at the linear mixed model documentation you should be able to extract the confidence interval values from lme.Coefficients.Upper and lme.Coefficients.Lower. (They are the red dotted lines already in your plot, by the way).

Myrtle42
Myrtle42 2020 年 8 月 5 日
In case anyone else is still wondering about this, the predict function is the way to go:

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by