powered by
This function calculates measures of goodness of fit for nonlinear regression. It works with both 'nls' and 'drc' objects
R2nls(object)
A list with the following slots:
Traditional coefficient of determination, calculated as the ratio of model SS to total SS. Formula as in Schabenberger and Pierce, 5.23, pag 211.
Pseudo-R2, more useful for nonlinear regression with no-intercept-models. Formula Formula as in Schabenberger and Pierce, 5.24, pag 212.
Adjusted R2, similar to R2 above, but penalised for higher number of parameters.
Mean Squared Error
Root Means Squared Error
Relative Root Means Squared Error
A nonlinear regression fit object. It can be either a 'nls' fit or 'drm' fit.
Andrea Onofri
Schabenberger, O., Pierce, F.J., 2002. Contemporary statistical models for the plant and soil sciences. Taylor & Francis, CRC Press, Books.
data(beetGrowth) mod3 <- nls(weightInf ~ NLS.L3(DAE, b, c, d), data = beetGrowth) R2nls(mod3) mod4 <- drm(weightInf ~ DAE, fct = L.3(), data = beetGrowth) R2nls(mod4)
Run the code above in your browser using DataLab