#' Mean Absolute Percentage Error
#'
#' Mean Absolute Percentage Error.
#' @param Actual vector of "Actual" data
#' @param Fitted vector of "Fitted" data
#' @keywords MAPE error
#' @export
MAPE <- function(Actual, Fitted) {
return(mean(abs(Actual - Fitted) / Actual))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.