Learn R Programming

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

corpcor (version 1.5.6)

Efficient Estimation of Covariance and (Partial) Correlation

Description

This package implements a James-Stein-type shrinkage estimator for the covariance matrix, with separate shrinkage for variances and correlations. The details of the method are explained in Sch\"afer and Strimmer (2005) and Opgen-Rhein and Strimmer (2007). The approach is both computationally as well as statistically very efficient, it is applicable to "small n, large p" data, and always returns a positive definite and well-conditioned covariance matrix. In addition to inferring the covariance matrix the package also provides shrinkage estimators for partial correlations, partial variances, and regression coefficients. The inverse of the covariance and correlation matrix can be efficiently computed, and as well as any arbitrary power of the shrinkage correlation matrix. Furthermore, functions are available for fast singular value decomposition, for computing the pseudoinverse, and for checking the rank and positive definiteness of a matrix.

Copy Link

Version

Install

install.packages('corpcor')

Monthly Downloads

44,150

Version

1.5.6

License

GPL (>= 3)

Maintainer

Korbinian Strimmer

Last Published

March 10th, 2010

Functions in corpcor (1.5.6)

smtools

Some Tools for Handling Symmetric Matrices
corpcor-package

The corpcor Package
corpcor-internal

Internal corpcor Functions
cor2pcor

Compute Partial Correlation from Correlation Matrix -- and Vice Versa
powcor.shrink

Fast Computation of the Power of the Shrinkage Correlation Matrix
mvr.shrink

Multivariate Shrinkage Regression
pcor.shrink

Shrinkage Estimates of Partial Correlation and Partial Variance
cov.shrink

Shrinkage Estimates of Covariance and Correlation
rebuild.cov

Rebuild and Decompose the (Inverse) Covariance Matrix
fast.svd

Fast Singular Value Decomposition
pseudoinverse

Pseudoinverse of a Matrix
wt.scale

Weighted Expectations and Variances
rank.condition

Positive Definiteness of a Matrix, Rank and Condition Number
mpower

Compute the Power of a Real Symmetric Matrix
invcov.shrink

Fast Computation of the Inverse of the Covariance and Correlation Matrix