ddPlot: Distance-Distance Plot

Description Usage Arguments Value Examples

View source: R/ddplot.R

Description

This function allows you to input a data matrix, along with a robust estimate of the multivariate center and robust estimate of the covariance. The standard mean and covariance estimates are calculated from the data matrix, and a scatterplot of the mahalanobis distances for each row based on the standard estimate and robust estimates returned.

Usage

1
ddPlot(x, rmu, rcov, interact = F)

Arguments

x

a data frame or matrix of numeric covariates

rmu

robust multivariate center

rcov

robust covariance matrix

interact

if set to TRUE, allows you to label the outlying points by clicking on them. defaults to FALSE.

Value

a plot

Examples

1
2
out <- cov.ogk(x, all = T)
ddPlot(x, out$center, out$cov)

abnormally-distributed/cvreg documentation built on May 3, 2020, 3:45 p.m.