Learn R Programming

autocart (version 1.4.5)

rmae: Relative mean absolute error

Description

Relative mean absolute error

Usage

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

Run this code
# NOT RUN {
# Create two vectors, add some noise, and evaluate the RMAE.
firstVec <- 1:10
secondVec <- 1:10 + rnorm(10)
rmae(firstVec, secondVec)
# }

Run the code above in your browser using DataLab