cov.mrgv: Minimum Regularized Generalized Variance Covariance Estimator

Description Usage Arguments Value

View source: R/covariance.R

Description

This is very similar to the minimum regularized covariant determinant covariance estimator. The generalized variance of a data set is in fact simply the determinant of its covariance matrix. However, this function uses an initial robust estimator of the covariance for a "leave one out" data set for each of the N-ith subsets. This is used to calculate depth values, for which an adaptive threshold is used to declare an observation an outlier. The covariance matrix is then recalculated on the subset. This process is then re-iterated until the generalized variance of the matrix converges. In order to ensure that the generalized variance is non-negative at each iteration, the estimated covariance is checked for positive-definiteness and shrinkage applied in the event of a non-positive definite matrix.

Optionally, the number of maximum iterations can be set to zero, in which case the raw generalized variance estimator will be returned.

Usage

1
cov.mrgv(x, maxit = 10, tol = 1e-06)

Arguments

x

a data frame or matrix of numeric covariates

maxit

number of maximum iterations. defaults to 10. set to 0 to obtain the raw initial estimate.

tol

the tolerance value for convergence. defaults to 1e-6.

Value

a covRobust object containing the following elements:


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