Learn R Programming

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

corpcor (version 1.4.0)

Efficient Estimation of Covariance and (Partial) Correlation

Description

This package implements an analytic shrinkage approach for inferring the covariance matrix. The estimator is statistically highly accurate and efficient, applicable to "small n, large p" data, and always returns a positive definite and well-conditioned matrix. Nevertheless, this method requires only little a priori modeling and is computationally cheap. In addition to covariance estimation the package contains similar functions for inferring variances, correlations, partial correlations, partial covariances, and regression coefficients. Furthermore, it provides functions for fast SVD computation, for computing the pseudoinverse, for checking the rank and positive definiteness of a matrix, and for the computationally fast inversion of the covariance and correlation matrix.

Copy Link

Version

Install

install.packages('corpcor')

Monthly Downloads

44,150

Version

1.4.0

License

GPL version 2 or newer

Maintainer

Korbinian Strimmer

Last Published

September 16th, 2021

Functions in corpcor (1.4.0)

fast.svd

Fast Singular Value Decomposition
pseudoinverse

Pseudoinverse of a Matrix
cor2pcor

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

Fast Computation of the Inverse of the Covariance and Correlation Matrix
pcor.shrink

Shrinkage Estimates of Partial Correlation and Partial Covariance
rebuild.cov

Rebuild Covariance Matrix from Correlation Matrix
mvr.shrink

Multivariate Shrinkage Regression
rank.condition

Positive Definiteness of a Matrix, Rank and Condition Number
corpcor-internal

Internal corpcor Functions
cov.shrink

Shrinkage Estimates of Covariance and Correlation
weighted.scale

Weighted Expectations and Variance