Does Matlab provide the predicted R-squared value?

11 ビュー (過去 30 日間)
Andreas Lemke
Andreas Lemke 2015 年 2 月 24 日
回答済み: Richard Ott 2019 年 2 月 1 日
In Regression analysis the predictied R-Squared value gives information regarding overfittting and prediction of a model. This information is additional to the adjusted R-Squared value. However I can not find a Matlab function that provides the Predicted R-Squared value (Neither in the Curve fitting toolbox nor in the statistical toolbox)!

回答 (2 件)

Richard Ott
Richard Ott 2019 年 2 月 1 日
I found a workaround for this issue:
  • Download the press tool (https://ch.mathworks.com/matlabcentral/fileexchange/14564-press?s_tid=srchtitle)
Then:
lm = fitlm(X,'Y~x1+x2)
pr = press(X)
rPred = 1-pr/lm.SST

Richard Ott
Richard Ott 2019 年 2 月 1 日
I agree, this is a major omission and should be added ASAP.

カテゴリ

Help Center および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by