Residual Standard Error (RSE)

Share:

Description

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

Usage

1
rse(fit)

Arguments

fit

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

Value

The residual standard error of fit.

Note

The residual standard error is the square root of the residual sum of squares divided by the residual degrees of freedom.

See Also

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

Examples

1
2
3
4
5
6
7
data(efc)
fit <- lm(barthtot ~ c160age + c12hour, data = efc)
rse(fit)

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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.