Learn R Programming

⚠️There's a newer version (1.7-7) of this package.Take me there.

R package providing scalable robust estimators with high breakdown point.

Installation

You can install ‘rrcov’ from github with:

# install.packages("remotes")
remotes::install_github("valentint/rrcov")

Example

This is a basic example which shows you if the package is properly installed:


library(rrcov)
#> Loading required package: robustbase
#> Scalable Robust Estimators with High Breakdown Point (version 1.5-5)
data(hbk)
(out <- CovMcd(hbk))
#> 
#> Call:
#> CovMcd(x = hbk)
#> -> Method:  Fast MCD(alpha=0.5 ==> h=40); nsamp = 500; (n,k)mini = (300,5) 
#> 
#> Robust Estimate of Location: 
#>       X1        X2        X3         Y  
#>  1.50345   1.85345   1.68276  -0.06552  
#> 
#> Robust Estimate of Covariance: 
#>     X1        X2        X3        Y       
#> X1   1.56742   0.15447   0.28699   0.16560
#> X2   0.15447   1.60912   0.22130  -0.01917
#> X3   0.28699   0.22130   1.55468  -0.21853
#> Y    0.16560  -0.01917  -0.21853   0.45091

Copy Link

Version

Install

install.packages('rrcov')

Monthly Downloads

23,230

Version

1.6-0

License

GPL (>= 3)

Maintainer

Valentin Todorov

Last Published

September 16th, 2021

Functions in rrcov (1.6-0)

CovControlMcd

Constructor function for objects of class "CovControlMcd"
Appalachia

Annual maximum streamflow in central Appalachia
Cascades

Annual precipitation totals for the North Cascades region
Cov-class

Class "Cov" -- a base class for estimates of multivariate location and scatter
CovControlMMest

Constructor function for objects of class "CovControlMMest"
CovControlMMest-class

Class 'CovControlMMest' - contains control parameters for "CovMMest"
CovClassic-class

Class "CovClassic" - classical estimates of multivariate location and scatter
CovClassic

Classical Estimates of Multivariate Location and Scatter
CovControlMcd-class

Class 'CovControlMcd' - contains control parameters for CovMcd
CovControl-class

Class "CovControl" is a VIRTUAL base control class
CovControlSde

Constructor function for objects of class "CovControlSde"
CovControlMve

Constructor function for objects of class "CovControlMve"
CovControlSde-class

Class 'CovControlSde' - contains control parameters for "CovSde"
CovControlMve-class

Class 'CovControlMve' - contains control parameters for CovMve
CovControlMest-class

Class 'CovControlMest' - contains control parameters for "CovMest"
CovControlMest

Constructor function for objects of class "CovControlMest"
CovControlMrcd

Constructor function for objects of class "CovControlMrcd"
CovControlMrcd-class

Class 'CovControlMrcd' - contains control parameters for CovMrcd()
CovControlOgk-class

Class 'CovControlOgk' - contains control parameters for CovOgk
CovControlOgk

Constructor function for objects of class "CovControlOgk"
CovControlSest

Constructor function for objects of class "CovControlSest"
CovControlSest-class

Class 'CovControlSest' - contains control parameters for "CovSest"
CovMcd-class

MCD Estimates of Multivariate Location and Scatter
CovMcd

Robust Location and Scatter Estimation via MCD
CovMest

Constrained M-Estimates of Location and Scatter
CovMest-class

Constrained M-estimates of Multivariate Location and Scatter
CovMrcd-class

MRCD Estimates of Multivariate Location and Scatter
CovMve-class

MVE Estimates of Multivariate Location and Scatter
CovMrcd

Robust Location and Scatter Estimation via Minimum Regularized Covariance Determonant (MRCD)
CovMve

Robust Location and Scatter Estimation via MVE
CovRobust

Robust Location and Scatter Estimation
CovRobust-class

Class "CovRobust" - virtual base class for robust estimates of multivariate location and scatter
CovSest-class

S Estimates of Multivariate Location and Scatter
CovSest

S Estimates of Multivariate Location and Scatter
CovOgk

Robust Location and Scatter Estimation - Ortogonalized Gnanadesikan-Kettenring (OGK)
CovOgk-class

OGK Estimates of Multivariate Location and Scatter
OsloTransect

Oslo Transect Data
Linda-class

Class "Linda" - Robust method for LINear Discriminant Analysis
LdaClassic

Linear Discriminant Analysis
LdaPP-class

Class "LdaPP" - Robust method for Linear Discriminant Analysis by Projection-pursuit
CovMMest

MM Estimates of Multivariate Location and Scatter
CovMMest-class

MM Estimates of Multivariate Location and Scatter
CovSde-class

Stahel-Donoho Estimates of Multivariate Location and Scatter
LdaPP

Robust Linear Discriminant Analysis by Projection Pursuit
CovSde

Stahel-Donoho Estimates of Multivariate Location and Scatter
LdaRobust-class

Class "LdaRobust" is a virtual base class for all robust LDA classes
Pca-class

Class "Pca" - virtual base class for all classic and robust PCA classes
Linda

Robust Linear Discriminant Analysis
PcaLocantore

Spherical Principal Components
PcaLocantore-class

Class "PcaLocantore" Spherical Principal Components
PcaGrid-class

Class "PcaGrid" - Robust PCA using PP - GRID search Algorithm
PcaGrid

Robust Principal Components based on Projection Pursuit (PP): GRID search Algorithm
LdaClassic-class

Class "LdaClassic" - Linear Discriminant Analysis
PcaHubert

ROBPCA - ROBust method for Principal Components Analysis
Lda-class

Class "Lda" - virtual base class for all classic and robust LDA classes
PcaHubert-class

Class "PcaHubert" - ROBust method for Principal Components Analysis
QdaClassic-class

Class "QdaClassic" - Quadratic Discriminant Analysis
QdaClassic

Quadratic Discriminant Analysis
PcaCov

Robust PCA based on a robust covariance matrix
PcaProj

Robust Principal Components based on Projection Pursuit (PP): Croux and Ruiz-Gazen (2005) algorithm
PcaProj-class

Class "PcaProj" - Robust PCA using PP - Croux and Ruiz-Gazen (2005) algorithm
PcaClassic-class

Class "PcaClassic" - Principal Components Analysis
PcaCov-class

Class "PcaCov" - Robust PCA based on a robust covariance matrix
PredictQda-class

Class "PredictQda" - prediction of "Qda" objects
Qda-class

Class "Qda" - virtual base class for all classic and robust QDA classes
QdaCov-class

Class "QdaCov" - Robust methods for Quadratic Discriminant Analysis
PcaClassic

Principal Components Analysis
QdaCov

Robust Quadratic Discriminant Analysis
PcaRobust-class

Class "PcaRobust" is a virtual base class for all robust PCA classes
SummaryPca-class

Class "SummaryPca" - summary of "Pca" objects
SummaryQda-class

Class "SummaryQda" - summary of "Qda" objects
SummaryCovRobust-class

Class "SummaryCovRobust" - summary of "CovRobust" objects
SummaryLda-class

Class "SummaryLda" - summary of "Lda" objects
SummaryCov-class

Class "SummaryCov" - summary of "Cov" objects
QdaRobust-class

Class "QdaRobust" is a virtual base class for all robust QDA classes
T2.test

Robust Hotelling T2 test
getEllipse

Calculates the points for drawing a confidence ellipsoid
bushmiss

Campbell Bushfire Data with added missing data items
PredictLda-class

Class "PredictLda" - prediction of "Lda" objects
covMest

Constrained M-Estimates of Location and Scatter
getLoadings-methods

Accessor methods to the essential slots of Pca and its subclasses
diabetes

Reaven and Miller diabetes data
biplot-methods

Biplot for Principal Components (objects of class 'Pca')
bus

Automatic vehicle recognition data
hemophilia

Hemophilia Data
fish

Fish Catch Data Set
getCenter-methods

Accessor methods to the essential slots of Cov and its subclasses
isSingular-methods

Check if a covariance matrix (object of class 'Cov') is singular
restimate-methods

Methods for Function estimate in Package 'rrcov'
pca.distances

Compute score and orthogonal distances for Principal Components (objects of class 'Pca')
maryo

Marona and Yohai Artificial Data
machines

Computer Hardware
Wilks.test

Classical and Robust One-way MANOVA: Wilks Lambda
wages

Wages and Hours
wolves

Skull dimensions of the wolf Canis lupus L.
pca.scoreplot

Score plot for Principal Components (objects of class 'Pca')
un86

United Nations Data - 1986
octane

Octane data
plot-methods

Methods for Function 'plot' in Package 'rrcov'
lmom32

Hosking and Wallis Data Set, Table 3.2
soil

Exchangable cations in forest soil data set
lmom33

Hosking and Wallis Data Set, Table 3.3
olitos

Olive Oil Data
pottery

Archaic Greek Pottery data
rice

Rice taste data
rrcov-utils

Different utility functions to be used in rrcov and packages depending on rrcov
salmon

Salmon data
scorePlot-methods

Score plot for Principal Components (objects of class 'Pca')