View source: R/SupportFunctions.R
my_mae | R Documentation |
Returns the mean absolute error between two vectors
my_mae(x, y)
x |
vector |
y |
vector |
Mean absolute error between the two vectors x and y
#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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.