x
.
The ellipse is defined by those data points whose distance
is equal to the squareroot of the 0.975 chisquare quantile
with 2 degrees of freedom.tolEllipsePlot(x, m.cov = covMcd(x), cutoff = NULL, id.n = NULL,
classic = FALSE, tol = 1e-07,
xlab = "", ylab = "",
main = "Tolerance ellipse (97.5%)",
txt.leg = c("robust", "classical"),
col.leg = c("red", "blue"),
lty.leg = c("solid","dashed"))
"mcd"
; however
only its components center
and cov
will be used. If
missing, the MCD will be computed (via covMcd()
).cutoff
is used.FALSE
by default.solve
. Defaults to 1e-7
.plot.default
.classic = TRUE
.covPlot
which calls tolEllipsePlot()
when
desired.
ellipsoidhull
and
predict.ellipsoid
from package data(hbk)
hbk.x <- data.matrix(hbk[, 1:3])
mcd <- covMcd(hbk.x) # compute mcd in advance
## must be a 2-dimensional data set: take the first two columns :
tolEllipsePlot(hbk.x[,1:2])
## an "impressive" example:
data(telef)
tolEllipsePlot(telef, classic=TRUE)
Run the code above in your browser using DataLab