diagnostics | R Documentation |
diagnostics
is a generic function for producing regression
diagnostics. Currently linear and logistic regression models are supported.
diagnostics(x, ...)
x |
an object of type |
... |
further arguments passed to or from other methods. |
The diagnostics
function produces data visualizations
(ggplot2 graphs) for regression diagnostics. The plots depend
on the form of the model (lm
or glm
).
The results of the methods diagnostics.lm
or diagnostics.glm
diagnostics.lm
, diagnostics.glm
fit <- lm(mpg ~ hp + wt + accel + origin, data = auto_mpg) diagnostics(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.