diagnostics: Regression Diagnostics

View source: R/diagnostics.R

diagnosticsR Documentation

Regression Diagnostics

Description

diagnostics is a generic function for producing regression diagnostics. Currently linear and logistic regression models are supported.

Usage

diagnostics(x, ...)

Arguments

x

an object of type "lm" or "glm".

...

further arguments passed to or from other methods.

Details

The diagnostics function produces data visualizations (ggplot2 graphs) for regression diagnostics. The plots depend on the form of the model (lm or glm).

Value

The results of the methods diagnostics.lm or diagnostics.glm

See Also

diagnostics.lm, diagnostics.glm

Examples

fit <- lm(mpg ~ hp + wt + accel + origin, data = auto_mpg)
diagnostics(fit)

Rkabacoff/qacReg documentation built on Aug. 1, 2022, 11:11 p.m.