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

1
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

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

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