Learn R Programming

rmngb (version 0.6-1)

diagBinom: Plot Diagnostics for Logistic Regressions

Description

Two plots are available: a plot of predicted against observed values, and an ROC curve assessing the classifying capacity of the model.

Usage

diagBinom(mod, type = 1:2, ask = prod(par("mfcol")) < length(type) && dev.interactive())

Arguments

mod
a glm with a binomial family.
type
the plots wanted, with 1 for predicted against observed and 2 for an ROC curve.
ask
logical, if TRUE the user is asked before continuing to a new plot.

Value

Nothing of interest.

Details

More plots may be available in the future.

References

Inspired by the book by Hosmer and Lemeshow.

See Also

plot.lm.

Examples

Run this code
require(stats)
model1 <- glm(case ~ spontaneous+induced, data = infert, family = binomial())
diagBinom(model1)

Run the code above in your browser using DataLab