diag_data: Create a tibble with useful diagnostic measures

Description Usage Arguments Value See Also Examples

View source: R/diag-data.R

Description

Uses broom::augment and some other useful measures

Usage

1
diag_data(model)

Arguments

model

a previously fitted model of class lm or glm

Value

A tibble of class diag_lm or diag_glm (depending on the class of the model object) with the following columns:

See Also

Other glm diagnostic functions: plot.diag_glm, plot.diag_lm

Examples

1
2
3
4
5
fit_lm <- lm(mpg ~ cyl, data = mtcars)
diag_data(fit_lm)

fit_glm <- glm(mpg ~ cyl, family = Gamma(link = "log"), data = mtcars)
diag_data(fit_glm)

curso-r/ggilberto documentation built on May 20, 2019, 2:39 p.m.