nlr2: Nonlinear R-squared

Description Usage Arguments Details Value

Description

nlr2 calculates a nonlinear R-squared for the observed values.

Usage

1
nlr2(observed, expected)

Arguments

observed

a numeric vector of observations.

expected

a numeric vector of expected values.

Details

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.

Value

The nonlinear R-squared value (numeric scalar).


ngwalton/iec documentation built on May 23, 2019, 4:43 p.m.