Description Usage Arguments Details Value
nlr2
calculates a nonlinear R-squared for the observed values.
1 | nlr2(observed, expected)
|
observed |
a numeric vector of observations. |
expected |
a numeric vector of expected values. |
This function calculates the non-linear R-squared. The equation used is:
R^2 = 1 - (SS_reg / SS_tot)
(see p. 34-35 here). Note that this nonlinear R-squared is not anything squared so it can result a negative value. Negative values indicate poor model fit.
The nonlinear R-squared value (numeric scalar).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.