Learn R Programming

merTools (version 0.6.2)

RMSE.merMod: Estimate the Root Mean Squared Error (RMSE) for a lmerMod

Description

Extract the Root Mean Squared Error for a lmerMod object

Usage

RMSE.merMod(merMod, scale = FALSE)

Value

a numeric which represents the RMSE

Arguments

merMod

a lmerMod object from the lme4 package

scale

logical, should the result be returned on the scale of response variable standard deviations?

Examples

Run this code
require(lme4)
m2 <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy)
RMSE.merMod(m2)

Run the code above in your browser using DataLab