malindexplot: Plots the trajectory of minimum Mahalanobis distance (mmd)

View source: R/malindexplot.R

malindexplotR Documentation

Plots the trajectory of minimum Mahalanobis distance (mmd)

Description

Plots the trajectory of minimum Mahalanobis distance (mmd)

Usage

malindexplot(
  out,
  p,
  xlab,
  ylab,
  main,
  nameX,
  conflev,
  numlab,
  tag,
  trace = FALSE,
  ...
)

Arguments

out

a numeric vector or an object of S3 class (one of fsmult.object, smult.object or mmmult.object) returned by one of the functions fsmult or smult or mmmult - a list containing the monitoring of minimum Mahalanobis distance

p

If out is a vector, p is the number of variables of the original data matrix which have been used to compute md.

xlab

A title for the x axis

ylab

A title for the y axis

main

An overall title for the plot

nameX

Add variable labels in the plot. A vector of strings of length p containing the labels of the variables of the original data matrix X. If it is empty (default) the sequence X1, ..., Xp will be created automatically

conflev

confidence interval for the horizontal bands. It can be a vector of different confidence level values, e.g. c(0.95, 0.99, 0.999). The confidence interval is based on the chi^2 distribution.

numlab

Number of points to be labeled in the plot. If numlab is a single number, e.g. numlab]k, the units with the k largest md are labelled in the plots. If numlab is a vector, the units indexed by the vector are labelled in the plot. Default is numlab=5, i.e. the 5 units units with the largest md are labelled. Use numlab="" for no labelling.

tag

Tag of the figure which will host the malindexplot. The default tag is tag="pl_malindex".

trace

Whether to print intermediate results. Default is trace=FALSE.

...

potential further arguments passed to lower level functions.

Value

none

Author(s)

FSDA team, valentin.todorov@chello.at

References

Atkinson and Riani (2000), Robust Diagnostic Regression Analysis, Springer Verlag, New York.

Examples


 ## Not run: 
 ##  Mahalanobis distance plot of 100 random numbers.
 ##  Numbers are from from the chisq with 5 degrees of freedom

 malindexplot(rchisq(100, 5), 5)
 
## End(Not run)


fsdaR documentation built on March 31, 2023, 8:18 p.m.