ols_plot_resid_fit_spread: Residual fit spread plot

Description Usage Arguments Details Deprecated Function References Examples

Description

Plot to detect non-linearity, influential observations and outliers.

Usage

1
2
3
4
5

Arguments

model

An object of class lm.

Details

Consists of side-by-side quantile plots of the centered fit and the residuals. It shows how much variation in the data is explained by the fit and how much remains in the residuals. For inappropriate models, the spread of the residuals in such a plot is often greater than the spread of the centered fit.

Deprecated Function

ols_rfs_plot(), ols_fm_plot() and ols_rsd_plot() has been deprecated. Instead use ols_plot_resid_fit_spread(), ols_plot_fm() and ols_plot_resid_spread().

References

Cleveland, W. S. (1993). Visualizing Data. Summit, NJ: Hobart Press.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# model
model <- lm(mpg ~ disp + hp + wt, data = mtcars)

# residual fit spread plot
ols_plot_resid_fit_spread(model)

# fit mean plot
ols_plot_fm(model)

# residual spread plot
ols_plot_resid_spread(model)

cmlopera/olsrr documentation built on May 26, 2019, 10:34 a.m.