Last data update: 2014.03.03

R: Returns model errors (residuals) from lm object
modelErrorsR Documentation

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

Author(s)

John J. Curtin jjcurtin@wisc.edu

See Also

residuals, lm

Examples

m = lm(interlocks~assets+nation, data=Ornstein)
modelErrors(m)

Results