Borrar filtros
Borrar filtros

R-squared for Log-log graph

4 visualizaciones (últimos 30 días)
Nabeel
Nabeel el 13 de Mzo. de 2015
Editada: dpb el 13 de Mzo. de 2015
I have plotted log-log graph for data series. than fit a line by ployfit i want to find R-squared for line and data how it can be done

Respuestas (1)

dpb
dpb el 13 de Mzo. de 2015
Editada: dpb el 13 de Mzo. de 2015
Evaluate the model in log-log space, transform those values back to non-log'ed values and then compute the error and total sums of squares from those values. R-square from the fitted model is the goodness of fit in the transformed space which is inflated owing to the contraction in magnitude of the log transform. But, if it isn't pretty high there, it will be turn out to be low in "real" dimension.
ADDENDUM
I do presume you're aware the definition of
R-sq=1-SSres/SStot
where SSres,tot is the residual and total sum of squares, respectively. And those are easily obtained in Matlab via dot

Categorías

Más información sobre Linear and Nonlinear Regression en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by