Learn R Programming

ambit (version 0.2.3)

my_mae: my_mse

Description

Returns the mean absolute error between two vectors

Usage

my_mae(x, y)

Value

Mean absolute error between the two vectors x and y

Arguments

x

vector

y

vector

Examples

Run this code
#Simulate two vectors of i.i.d.~standard normal data
set.seed(456)
x <- rnorm(100)
y <- rnorm(100)
#Compute the mean absolute error between both vectors
my_mae(x,y)

Run the code above in your browser using DataLab