grab_resids: Grab the residuals

Description Usage Arguments Examples

View source: R/grab-resids.r

Description

This is a simple function to grab the residuals of a linear model.

Usage

1
grab_resids(lm_obj)

Arguments

lm_obj

the linear model object created by the lm() function.

Examples

1
2
3
library(palmerpenguins)
fit <- lm(bill_length_mm ~ ., data = penguins[, -8])
grab_resids(fit)

kaneplusplus/bis557 documentation built on Sept. 13, 2020, 9:01 p.m.