powered by
Calculates the root-mean-squared-error (RMSE) for objects of class nls, lm, glm, drc or any other models from which residuals can be extacted.
nls
lm
glm
drc
residuals
RMSE(object, which = NULL)
a fitted model.
a subset of the curve to be used for RMSE calculation. If not defined, the complete curve is used.
The root-mean-squared-error from the fit or a part thereof.
$$RMSE = \sqrt{\overline{(y_i-\hat{y}_i)^2}}$$
# NOT RUN { ## For a curve subset. m1 <- pcrfit(reps, 1, 2, l5) RMSE(m1, 10:15) # }
Run the code above in your browser using DataLab