Learn R Programming

imputeTestbench (version 3.0.3)

mae: Mean Absolute Error Calculation

Description

takes difference between Original data and Predicted data as input

Usage

mae(obs, pred)

Arguments

obs

numeric vector of original data

pred

numeric vector of predicted data

Value

maeVal as Mean Absolute Error

Examples

Run this code
# NOT RUN {
## Generate 100 random numbers within some limits
x <- sample(1:7, 100, replace = TRUE)
y <- sample(1:4, 100, replace = TRUE)
z <- mae(x, y)
z
# }

Run the code above in your browser using DataLab