ppe: Percent Prediction Error

Description Usage Arguments Details Value Author(s) References See Also

View source: R/ppe.R

Description

This function calculates the percent prediction error of a sample based on the predicted and true values

Usage

1
ppe(true, pred, abs = TRUE)

Arguments

true

a numeric vector representing the true value on which a prediction (pred) will be compared

pred

a numeric vector with the predicted values, must be equal length to true

abs

a logical value indicating whether to return the absolute values for ppe, default is abs = TRUE

Details

This function calculates the percent prediction error (ppe) as a scaled residual (Smith 1980), generally based on the absolute residual, so:

ppe=(( | true-pred | ) / pred) x 100

Value

Function returns a list of results, including the a list of all the precent prediction errors, along with the mean, 95 percent confidence intervals, range, and standard deviation.

Author(s)

Nicolas E. Campione

References

Smith, R. J. (1980) Rethinking allometry. Journal of Theoretical Biology, 87, 97-111.

See Also

see


MASSTIMATE documentation built on May 29, 2017, 4:23 p.m.