mape {imputeTestbench}R Documentation

Mean Absolute Percent Error Calculation

Description

takes difference between Original data and Predicted data as input

Usage

mape(obs, pred)

Arguments

obs

numeric vector of original data

pred

numeric vector of predicted data

Value

mapeVal as Mean Absolute Error

Examples

## Generate 100 random numbers within some limits
x <- sample(1:7, 100, replace = TRUE)
y <- sample(1:4, 100, replace = TRUE)
z <- mape(x, y)
z

[Package imputeTestbench version 3.0.3 Index]