Learn R Programming

sjstats (version 0.2.0)

rse: Residual Standard Error (RSE)

Description

Compute the residual standard error of fitted linear (mixed effects) models.

Usage

rse(fit)

Arguments

fit
Fitted linear model of class lm or merMod (lme4).

Value

The residual standard error of fit.

See Also

cv for the coefficient of variation, and rmse for the root mean squared error.

Examples

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

library(lme4)
fit <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy)
rse(fit)

Run the code above in your browser using DataLab