How to find r square in linear mixed model (fitlme)?
6 ビュー (過去 30 日間)
古いコメントを表示
I fit a model with fitlme function.
In my model I have both fixed and random effect. I need to find R square or similar on my model.
Please help to find rsquare. Thanks in advance
0 件のコメント
採用された回答
Star Strider
2020 年 7 月 21 日
According to the documentation for LinearMixedModelClass, specifically Rsquared, it appears to be available.
See if:
Rsq = mdl.Rsquared;
reveals it. There should be two results, so you need to choose the one that is most appropriate for your application.
4 件のコメント
Star Strider
2023 年 9 月 19 日
The fixedEffects and randomEffects objects have the relevant statistics on each. (This is the R2023b documentation, and there could be version differencces. I haven’t explored fitlme recently.)
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!