lm_diagnostics: Check assumptions of heteroscedasticity and normally...

Description Usage Arguments Examples

View source: R/lm_diagnostics.R

Description

Check assumptions of heteroscedasticity and normally distributed errors for a linear regression model fit.

Usage

1
lm_diagnostics(lmObj, outcomeString = "Outcome", titleString)

Arguments

lmObj

Model fit of class 'lm'.

outcomeString

String to identify outcome in X axis label. Defaults to "Outcome."

titleString

String to add to plot titles.

Examples

1
2
3
4
## Linear regression model
mymod <- lm(Sepal.Width ~ Sepal.Length, data = iris)

lm_diagnostics(mymod, outcomeString = 'Sepal.Width', titleString = 'Sepal.Width vs Sepal.Length')

jenniferthompson/JTHelpers documentation built on May 19, 2019, 4:04 a.m.