Using the fitlm function for model without intercept, how R-squared is being calculated?
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaire
Shuqi Liu
le 19 Juil 2021
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?
Réponses (1)
Rishabh Gupta
le 27 Juil 2018
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 commentaire
Pulkit Goyal
le 8 Avr 2020
This page doesn't explain the R-squared definitions when intercept is forced to zero.
Voir également
Catégories
En savoir plus sur Dimensionality Reduction and Feature Extraction dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!