mae: mean absolute error (mae)
Description
is a quantity used to measure how close forecasts or predictions are to the eventual outcomes. The mean absolute error is given by.
Usage
mae(observados, estimados)
Arguments
observados
vector of values observed.
estimados
vector of regression model data.
Value
Function that returns Mean Absolute Error
Details
mae = mean(abs(observados-estimados))