rmae {autocart} | R Documentation |
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
# Create two vectors, add some noise, and evaluate the RMAE.
firstVec <- 1:10
secondVec <- 1:10 + rnorm(10)
rmae(firstVec, secondVec)
[Package autocart version 1.4.5 Index]