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

Description Usage Arguments Value Examples

View source: R/merExtract.R

Description

Extract the Root Mean Squared Error for a lmerMod object

Usage

1
RMSE.merMod(merMod, scale = FALSE)

Arguments

merMod

a lmerMod object from the lme4 package

scale

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

Value

a numeric which represents the RMSE

Examples

1
2
3
require(lme4)
m2 <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy)
RMSE.merMod(m2)

Example output

Loading required package: arm
Loading required package: MASS
Loading required package: Matrix
Loading required package: lme4

arm (Version 1.9-3, built: 2016-11-21)

Working directory is /work/tmp

Loading required package: dplyr

Attaching package: 'dplyr'

The following object is masked from 'package:MASS':

    select

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union

[1] 23.43806

merTools documentation built on May 29, 2017, 6:49 p.m.