Learn R Programming

performance (version 0.1.0)

rse: Residual Standard Error for Linear Models

Description

Compute residual standard error of linear models.

Usage

rse(model)

Arguments

model

Linear model of class lm, merMod (lme4) or lme (nlme).

Value

Numeric, the residual standard error of model.

Details

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

Examples

Run this code
# NOT RUN {
data(mtcars)
m <- lm(mpg ~ hp + gear, data = mtcars)
rse(m)

# }

Run the code above in your browser using DataLab