Using the fitlm function for model without intercept, how R-squared is being calculated?
이전 댓글 표시
The value of the R-squared when I define the linear model without intercept are mostly negative and somehow close to -3. When I apply the fitlm function for model without intercept, the R-squared values are between 0 and 1. Does anyone know which formula Matlab is using in this case?
댓글 수: 1
Shuqi Liu
2021년 7월 19일
Also when using fitlm without intercept, the Rsquared comptued by fitlm is different using Matlab 2020a and prior vs 2020b. Does anyone knows why did it change?
답변 (1개)
Rishabh Gupta
2018년 7월 27일
1 개 추천
Hi Farhad,
There are 2 types of R-squared values -
- Ordinary R-Squared
- Adjusted R-Squared
You can have a look at the formula in the below Link:
Regards
댓글 수: 1
Pulkit Goyal
2020년 4월 8일
This page doesn't explain the R-squared definitions when intercept is forced to zero.
카테고리
도움말 센터 및 File Exchange에서 Resampling Techniques에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!