ols_plot_resid_hist: Residual histogram

Description Usage Arguments Deprecated Function See Also Examples

View source: R/ols-residual-histogram.R

Description

Histogram of residuals for detecting violation of normality assumption.

Usage

1
ols_plot_resid_hist(model, print_plot = TRUE)

Arguments

model

An object of class lm.

print_plot

logical; if TRUE, prints the plot else returns a plot object.

Deprecated Function

ols_rsd_hist() has been deprecated. Instead use ols_plot_resid_hist().

See Also

Other residual diagnostics: ols_plot_resid_box, ols_plot_resid_fit, ols_plot_resid_qq, ols_test_correlation, ols_test_normality

Examples

1
2
model <- lm(mpg ~ disp + hp + wt, data = mtcars)
ols_plot_resid_hist(model)

olsrr documentation built on Feb. 10, 2020, 5:07 p.m.