Learn R Programming

auditor (version 0.3.0)

modelFit: Create Model Fit explainer

Description

Creates modelFit object to be plotted.

Usage

modelFit(object, quant.scale = FALSE, ...)

Arguments

object

An object of class ModelAudit.

quant.scale

if TRUE values on axis are on quantile scale.

...

other parameters passed do hnp function.

Examples

Run this code
# NOT RUN {
library(MASS)
model.glm <- glm(Postwt ~ Prewt + Treat + offset(Prewt), family = gaussian, data = anorexia)
audit.glm <- audit(model.glm)

mf.glm <- modelFit(audit.glm)

# }

Run the code above in your browser using DataLab