ols_plot_resid_pot: Potential residual plot

View source: R/ols-potential-residual-plot.R

ols_plot_resid_potR Documentation

Potential residual plot

Description

Plot to aid in classifying unusual observations as high-leverage points, outliers, or a combination of both.

Usage

ols_plot_resid_pot(model, print_plot = TRUE)

Arguments

model

An object of class lm.

print_plot

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

References

Chatterjee, Samprit and Hadi, Ali. Regression Analysis by Example. 5th ed. N.p.: John Wiley & Sons, 2012. Print.

See Also

ols_plot_hadi()

Examples

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


rsquaredacademy/olsrr documentation built on Nov. 8, 2024, 5:01 a.m.