Learn R Programming

lmSupport (version 2.9.13)

modelErrors: Returns model errors (residuals) from lm object

Description

Simple wrapper to return model errors using residuals() function. Implemented simply to match terminology to 610/710 GLM course. Also prints(but does not return) model SSE

Usage

modelErrors(Model)

Arguments

Model

an lm model obect

Value

Returns vector of model errors (residuals) from sample

See Also

residuals, lm

Examples

Run this code
# NOT RUN {
##NOT RUN
##data(BAC)
##m = lm(FPS~BAC+TA, data=BAC)
##modelErrors(m)
# }

Run the code above in your browser using DataLab