rmae: Relative mean absolute error

Description Usage Arguments Value Examples

View source: R/autocart.R

Description

Relative mean absolute error

Usage

1
rmae(pred, obs, na.rm = TRUE)

Arguments

pred

The vector of predictions

obs

The actual observed values

na.rm

Should NA values be taken out of the vectors?

Value

The relative mean average error of the two vectors.

Examples

1
2
3
4
# Create two vectors, add some noise, and evaluate the RMAE.
firstVec <- 1:10
secondVec <- 1:10 + rnorm(10)
rmae(firstVec, secondVec)

autocart documentation built on May 27, 2021, 5:07 p.m.