Learn R Programming

BGGM (version 1.0.0)

mae: Mean Absolute Error

Description

Mean Absolute Error

Usage

mae(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)

mae(pred)
# }

Run the code above in your browser using DataLab