Learn R Programming

BGGM (version 1.0.0)

rmse: Root Mean Squared Error

Description

Root Mean Squared Error

Usage

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

rmse(pred)
# }

Run the code above in your browser using DataLab