Learn R Programming

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

corpcor (version 1.2.0)

Efficient Estimation of Covariance and (Partial) Correlation

Description

This package implements a shrinkage estimator to allow the efficient inference of large-scale covariance matrices from small sample data. The resulting estimates are always positive definite, more accurate than the empirical estimate, well conditioned, computationally inexpensive, and require only little a priori modeling. The package also contains similar functions for inferring correlations and partial correlations and partial covariances. In addition, it provides functions for fast svd computation, for computing the pseuoinverse, for checking the rank and positive definiteness of a matrix, and for the computationally fast inversion of the covariance matrix.

Copy Link

Version

Install

install.packages('corpcor')

Monthly Downloads

42,579

Version

1.2.0

License

GPL version 2 or newer

Maintainer

Korbinian Strimmer

Last Published

September 16th, 2021

Functions in corpcor (1.2.0)

pseudoinverse

Pseudoinverse of a Matrix
cov.shrink

Shrinkage Estimates of Covariance and Correlation
smtools

Some Tools for Symmetric Matrices
cov.bagged

Bagged Estimates of Covariance and (Partial) Correlation
rank.condition

Positive Definiteness of a Matrix, Rank and Condition Number
rebuild.cov

Rebuild Covariance Matrix from Correlation Matrix
fast.svd

Fast Singular Value Decomposition
cor2pcor

Compute Partial Correlation from Correlation Matrix -- and Vice Versa
corpcor-internal

Internal corpcor Functions
pcor.shrink

Shrinkage Estimates of Partial Correlation and Partial Covariance
invcov.shrink

Fast Computation of the Inverse of the Covariance and Correlation Matrix
weighted.scale

Weighted Expectations and Variance