chisqPlot: Chi-Squared Plot for Outlier Detection

Description Usage Arguments Value Examples

View source: R/ddplot.R

Description

This plots the robust Mahalanobis distances from a robust estimate of multivariate location and covariance against the theoretical Chi-squared quantiles for a matrix with p dimensions. This functions analagously to the univariate qqplot.

Usage

1
chisqPlot(x, rmu, rcov, alpha = 0.975)

Arguments

x

a data frame or matrix of numeric covariates

rmu

robust multivariate center

rcov

robust covariance matrix

alpha

quantile of chi-squared distribution for declaring outliers. defaults to 0.975

Value

a plot

Examples

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

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