Learn R Programming

sjmisc (version 1.0.0)

rmse: Compute root mean squared error (RMSE)

Description

Compute root mean squared error of fitted linear (mixed effects) models.

Usage

rmse(fit)

Arguments

fit
a fitted linear model of class lm, merMod (lme4) or lme (nlme).

Value

  • The root mean squared error of fit.

See Also

cv

Examples

Run this code
data(efc)
fit <- lm(barthtot ~ c160age + c12hour, data=efc)
rmse(fit)

Run the code above in your browser using DataLab