- Download the press tool (https://ch.mathworks.com/matlabcentral/fileexchange/14564-press?s_tid=srchtitle)
Does Matlab provide the predicted R-squared value?
조회 수: 2 (최근 30일)
이전 댓글 표시
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)!
댓글 수: 0
답변 (2개)
Richard Ott
2019년 2월 1일
I found a workaround for this issue:
Then:
lm = fitlm(X,'Y~x1+x2)
pr = press(X)
rPred = 1-pr/lm.SST
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Linear Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!