PMs: Performance measures

Arguments Value See Also

Arguments

expect

A number vector, representing the expected or forecasted values.

obs

A number vector, representing the observed values.

layman

A logical. Used in mre and mpe. If FALSE (default) then the numerator is defined as expected - observed. If TRUE the numerator is defined as observed - expected. The default method is the approach commonly used in forecasting literature (See Hyndman, 2006). The latter approach produces results that may be more intuitive to the layman...

Value

A list, comprising two elements is returned. The first element, named errors, is a vector of the index-specific errors. The second list element is the statistic. NA values are tolerated.

See Also

https://en.wikipedia.org/wiki/Mean_absolute_error


MichaelFolkes/PBSperformance documentation built on May 8, 2019, 11:09 p.m.