Learn R Programming

BGGM (version 1.0.0)

mape: Mean Absolute Percentage Error

Description

Mean Absolute Percentage Error

Usage

mape(object, ...)

Arguments

object

object of class post.pred or predict.estimate

...

currently ignored

Value

object of class metric

Examples

Run this code
# NOT RUN {
# data
Y <- subset(tas, gender == "M")[,-ncol(tas)]

# fit model
fit <- estimate(Y)

# predict (note summary = FALSE)
pred <- predict(fit, iter = 50, summary = FALSE)

mape(pred)
# }

Run the code above in your browser using DataLab