Least square value of x and y values of a fitted model

I'm attempting to determine the R-squared value of a fitted model compared to experimental data using the vertical and horizontal error values. I can only find methods for the vertical value, ANY help would be greatly appreciated. The horizontal value is proving especially difficult.

1 Comment

This is very nonlinear model as well, and polyfit was not used to find it.

Sign in to comment.

 Accepted Answer

These are known as errors-in-variables models, http://en.wikipedia.org/wiki/Errors-in-variables_models. I am not personally familiar with the techniques here. You might find some information in this old thread:

1 Comment

Thanks for the help, doesn't look like those are terribly to me though. The model was found using the fminsearch algorithm if that helps at all. . .

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!