Learn R Programming

CovTools

Covariance is of universal prevalence across various disciplines within statistics. This package aims at providing a rich collection of geometric and statistical tools for a variety of inferences on covariance structures as well as its inverse called precision matrix. See the package help file by help("package-CovTools") in R console for the list of available functions.

Installation

You can install the released version of CovTools from CRAN with:

install.packages("CovTools")

or the development version from github:

## install.packages("devtools")
## library(devtools)
devtools::install_github("kisungyou/CovTools")

List of Available Methods

We offer various methods for covariance and symmetric positive-definite matrices. Below is the list of functions implemented in our package.

(0) Elementary Operations

function namedescription
CovDistcomputes pairwise distance for symmetric positive-definite matrices
CovMeanestimate mean/average covariance matrix

(1) Estimation : Covariance

function nameauthorsdescription
CovEst.adaptiveCai and Liu (2011)adaptive thresholding
CovEst.hardBickel and Levina (2008)hard thresholding
CovEst.hardPDFan et al. (2013)hard thresholding under positive-definiteness constraint
CovEst.nearPDQi and Sun (2006)nearest positive-definite matrix projection
CovEst.softAntoniadis and Fan (2001)soft thresholding
CovEst.2003LWLedoit and Wolf (2003)linear shrinkage estimation
CovEst.2010OASChen et al. (2010)oracle approximation shrinkage
CovEst.2010RBLWChen et al. (2010)Rao-Blackwell Ledoit-Wolf estimation

(2) Estimation : Precision

function nameauthorsdescription
PreEst.2014AnAn et al. (2014)banded precision estimation via bandwidth test
PreEst.2014BanerjeeBanerjee and Ghosal (2014)Bayesian estimation of a banded precision matrix
PreEst.2017LeeLee and Lee (2017)Bayesian estimation of a banded precision matrix
PreEst.glassoFriedman et al. (2008)graphical lasso

(3) Hypothesis Test : 1-sample

function nameauthorsdescription
BCovTeset1.mxPBFLee et al. (2018)Bayesian test using Maximum Pairwise Bayes Factor
CovTest1.2013CaiCai and Ma (2013)Test by Cai and Ma
CovTest1.2014SrivastavaSrivastava et al. (2014)Test by Srivastava, Yanagihara, and Kubokawa

(4) Hypothesis Test : 2-sample

function nameauthorsdescription
CovTest2.2013CaiCai and Ma (2013)Test by Cai and Ma

(5) Hypothesis Test : 1-sample Diagonal

function nameauthorsdescription
BDiagTest1.mxPBFLee et al. (2018)Bayesian Test using Maximum Pairwise Bayes Factor
DiagTest1.2011CaiCai and Jiang (2011)Test by Cai and Jiang
DiagTest1.2015LanLan et al. (2015)Test by Lan, Luo, Tsai, Wang, and Yang

Copy Link

Version

Install

install.packages('CovTools')

Monthly Downloads

239

Version

0.5.4

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Kisung You

Last Published

August 13th, 2021

Functions in CovTools (0.5.4)

CovTest2.2013Cai

Two-Sample Covariance Test by Cai and Ma (2013)
CovTest1.2013Cai

One-Sample Covariance Test by Cai and Ma (2013)
CovEst.2003LW

Covariance Estimation with Linear Shrinkage
CovDist

Compute Pairwise Distance for Symmetric Positive-Definite Matrices
CovTest1.2014Srivastava

One-Sample Covariance Test by Srivastava, Yanagihara, and Kubokawa (2014)
PreEst.2014Banerjee

Bayesian Estimation of a Banded Precision Matrix (Banerjee 2014)
DiagTest1.2015Lan

One-Sample Diagonality Test by Lan et al. (2015)
PreEst.2017Lee

Bayesian Estimation of a Banded Precision Matrix (Lee 2017)
PreEst.2014An

Banded Precision Matrix Estimation via Bandwidth Test
PreEst.glasso

Precision Matrix Estimation via Graphical Lasso
package-CovTools

A Collection of Geometric and Statistical Tools for Covariance (and Precision) Analysis
CovEst.soft

Covariance Estimation via Soft Thresholding
DiagTest1.2011Cai

One-Sample Diagonality Test by Cai and Jiang (2011)
samplecovs

Generate Sample Covariances of 2 groups
CovMean

Estimate Mean Covariance Matrix
BCovTest1.mxPBF

One-Sample Covariance Test using Maximum Pairwise Bayes Factor
CovEst.nearPD

Covariance Estimation via Nearest Positive-Definite Matrix Projection
CovEst.2010OAS

Oracle Approximating Shrinkage Estimator
CovEst.adaptive

Covariance Estimation via Adaptive Thresholding
BDiagTest1.mxPBF

One-Sample Diagonality Test by Maximum Pairwise Bayes Factor
CovEst.hardPD

Covariance Estimation via Hard Thresholding under Positive-Definiteness Constraint
CovEst.hard

Covariance Estimation via Hard Thresholding
CovEst.2010RBLW

Rao-Blackwell Ledoit-Wolf Estimator