Learn R Programming

auditor (version 0.3.0)

plotResidualBoxplot: Plot Boxplots of Residuals

Description

A plot of residuals.

Usage

plotResidualBoxplot(object, ...)

Arguments

object

An object of class modelAudit.

...

Other modelAudit objects to be plotted together.

See Also

plot.modelAudit

Examples

Run this code
# NOT RUN {
library(car)
lm_model <- lm(prestige~education + women + income, data = Prestige)
lm_au <- audit(lm_model, data = Prestige, y = Prestige$prestige)
plotResidual(lm_au)

library(randomForest)
rf_model <- randomForest(prestige~education + women + income, data = Prestige)
rf_au <- audit(rf_model, data = Prestige, y = Prestige$prestige)
plotResidualBoxplot(lm_au, rf_au)

# }

Run the code above in your browser using DataLab