powered by
Relative mean absolute error
rmae(pred, obs, na.rm = TRUE)
The vector of predictions
The actual observed values
Should NA values be taken out of the vectors?
The relative mean average error of the two vectors.
# 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