Cumulative Distribution Function for positive and negative residuals.

plotTwoSidedECDF(object, ..., error.scaled = TRUE, outliers = NA,
  residuals = TRUE, y.reversed = FALSE)

Arguments

object

An object of class ModelAudit.

...

Other modelAudit objects to be plotted together.

error.scaled

A logical value indicating whether ECDF should be scaled by proportions of positive and negative proportions.

outliers

Number of outliers to be marked.

residuals

A logical value indicating whether residuals should be marked.

y.reversed

A logical value indicating whether values on y axis should be reversed.

Value

ggplot object

See also

Examples

library(car) lm_model <- lm(prestige~education + women + income, data = Prestige) lm_au <- audit(lm_model, data = Prestige, y = Prestige$prestige) plotTwoSidedECDF(lm_au)
library(randomForest) rf_model <- randomForest(prestige~education + women + income, data = Prestige) rf_au <- audit(rf_model, data = Prestige, y = Prestige$prestige) plotTwoSidedECDF(lm_au, rf_au, y.reversed = TRUE)