mae: Calculate Root Mean Absolute Error

View source: R/caclulate_error.R

maeR Documentation

Calculate Root Mean Absolute Error

Description

Function that calculates Root Mean Absolute Error (MAE)

Usage

mae(actual, predicted)

Arguments

actual

observed values

predicted

predicted values

Examples

# Example data
actual <- c(4, 6, 9, 10, 4, 6, 4, 7, 8, 7)
predicted <- c(5, 6, 8, 10, 4, 8, 4, 9, 8, 9)
mae(actual, predicted)


ToowoombaTrio/WINS documentation built on June 1, 2024, 8:48 p.m.