Learn R Programming

imputeTestbench (version 2.0.2)

mape: Mean Absolute Percent Error Calculation

Description

takes difference between Original data and Predicted data as input

Usage

mape(diff, dataIn)

Arguments

diff
is the difference between Original data and Predicted data
dataIn
as original input data

Value

mapeVal as Mean Absolute Error

Examples

Run this code
## 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),x)
z

Run the code above in your browser using DataLab