| MAE | R Documentation |
Point estimate accuracy measures
MAE(residuals, na.rm = TRUE, ...)
MSE(residuals, na.rm = TRUE, ...)
point_measures
residuals |
A vector of residuals from either the validation or test data. |
na.rm |
If |
... |
Additional arguments for each measure. |
An object of class list of length 2.
For the individual functions (MAE, MSE), returns a single numeric
scalar giving the requested accuracy measure.
For the exported object point_measures, returns a named list of functions
that can be supplied to higher-level accuracy routines.
set.seed(123)
ytrain <- rnorm(100)
ytest <- rnorm(30)
yhat <- ytest + rnorm(30, sd = 0.3)
resid <- ytest - yhat
MAE(resid)
MSE(resid)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.