Learn R Programming

TSrepr (version 1.1.1)

mae: MAE

Description

The mae computes MAE (Mean Absolute Error) of a forecast.

Usage

mae(x, y)

Value

the numeric value

Arguments

x

the numeric vector of real values

y

the numeric vector of forecasted values

Author

Peter Laurinec, <[email protected]>

Examples

Run this code
mae(runif(50), runif(50))

Run the code above in your browser using DataLab