Squared error for curve fitting

I have a question about curve fitting in R. I need to calculate the mean squared error of various curves I made. I have been calculating the squared error as "error=sqrt(sum((Y-Y1)^2)/n)" is this the right way of doing it?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.