How to get the R2 value of fit?

81 visualizaciones (últimos 30 días)
Jen W
Jen W el 30 de Nov. de 2022
Respondida: Stephan el 30 de Nov. de 2022
In the code below, how to output the R2 value of the fitted coefficients?
ft = fittype('b*x^2+c*x+a');
load enso
fit(month,pressure,ft,'StartPoint',[1,3,5])

Respuesta aceptada

Stephan
Stephan el 30 de Nov. de 2022
ft = fittype('b*x^2+c*x+a');
load enso
[curve, gof]=fit(month,pressure,ft,'StartPoint',[1,3,5])

Más respuestas (0)

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