Learn R Programming

RobAStBase (version 0.7.1)

outlyingPlotIC: Function outlyingPlotIC in Package `RobAStBase'

Description

outlyingPlotIC produces an outlyingness plot based on distances applied to ICs

Usage

outlyingPlotIC(data, IC.x, IC.y = IC.x, dist.x = NormType(),
                         dist.y, cutoff.y = cutoff.chisq(), cutoff.x = cutoff.sememp(), ...,
                         cutoff.quantile.x = 0.95,
                         cutoff.quantile.y = cutoff.quantile.x,
                         id.n, lab.pts, adj, cex.idn,
                         col.idn, lty.cutoff, lwd.cutoff, col.cutoff,
                         main = gettext("Outlyingness by means of a distance-distance plot")
                         )

Arguments

Value

a list with itemsid.xthe indices of (possibly transformed) data (within subset id.n) beyond the x-cutoffid.ythe indices of (possibly transformed) data (within subset id.n) beyond the y-cutoffid.xythe indices of (possibly transformed) data (within subset id.n) beyond the x-cutoff and the y-cutoffqtxthe quantiles of the distances of the (possibly transformed) data in x directionqtythe quantiles of the distances of the (possibly transformed) data in y directioncutoff.x.vthe cutoff value in x directioncutoff.y.vthe cutoff value in y direction

Details

calls a corresponding ddPlot method to produce the plot.

Examples

Run this code
if(require(ROptEst)){
## generates normal location and scale family with mean = -2 and sd = 3
N0 <- NormLocationScaleFamily()
N0.IC0 <- optIC(model = N0, risk = asCov())
N0.Rob1 <- InfRobModel(center = N0, neighbor = ContNeighborhood(radius = 0.5))
N0.IC1 <- optIC(model = N0.Rob1, risk = asMSE())
xn <- c(rnorm(100),rcauchy(20)+20)
outlyingPlotIC(xn, IC.x=N0.IC0)
outlyingPlotIC(xn, IC.x=N0.IC1)
}

Run the code above in your browser using DataLab