06-16-2013 12:55 AM
Hello,
I looking for function that calculating R-Squared for linFit.
I calculated the function y=Slope*x + Inter. using LiFit function. I want to find how well the Line is Best Fit actually fits the data.
Best
Regards Boris
06-16-2013 05:24 AM
If you use the function LinearFitEx instead, with fit method least square, the function also returns the weighted mean square error.
Alternatively you can use GoodnessOfFit, which not only calculates the weighted mean square error but also the coefficient of determination, R2. Note that there are several different definitions of R2, see here.