HOW TO FIND THE R-SQUARED VALUE

17 vues (au cours des 30 derniers jours)
DEWDROP
DEWDROP le 10 Mai 2020
Commenté : DEWDROP le 15 Mai 2020
Hi,
i have plotted the graph using fitlm of wikinson notation as shown here where i have forced the intercept of the fitted line to be zero. How to find out the Rsquared value directly displaced on the command window.???
Thanks in advance

Réponse acceptée

Peng Li
Peng Li le 10 Mai 2020
mdl.Rsquared
check https://www.mathworks.com/help/stats/linearmodel.html for properties and methods related to linear regression model.
  3 commentaires
Peng Li
Peng Li le 11 Mai 2020
did you mean the default command window output for mdl?
but anyway you can access to it by mdl.Rsquared, and you can access to many other properties of linear regression class as well.
DEWDROP
DEWDROP le 15 Mai 2020
yes.i meant the default command window output

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by