corpcor: Efficient Estimation of Covariance and (Partial) Correlation

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 Schafer and Strimmer (2005) <doi:10.2202/1544-6115.1175> and Opgen-Rhein and Strimmer (2007) <doi:10.2202/1544-6115.1252>. 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 and partial variances. The inverse of the covariance and correlation matrix can be efficiently computed, 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.

Version: 1.6.10
Depends: R (≥ 3.0.2)
Imports: stats
Published: 2021-09-16
DOI: 10.32614/CRAN.package.corpcor
Author: Juliane Schafer, Rainer Opgen-Rhein, Verena Zuber, Miika Ahdesmaki, A. Pedro Duarte Silva, and Korbinian Strimmer.
Maintainer: Korbinian Strimmer <strimmerlab at>
License: GPL (≥ 3)
NeedsCompilation: no
Materials: NEWS
CRAN checks: corpcor results


Reference manual: corpcor.pdf


Package source: corpcor_1.6.10.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): corpcor_1.6.10.tgz, r-oldrel (arm64): corpcor_1.6.10.tgz, r-release (x86_64): corpcor_1.6.10.tgz, r-oldrel (x86_64): corpcor_1.6.10.tgz
Old sources: corpcor archive

Reverse dependencies:

Reverse depends: BinNonNor, BinNor, care, COMBAT, EDISON, GeneNet, GlobalAncova, GLSME, Hotelling, leapp, longitudinal, miRtest, MultiOrd, mvMORPH, OrdNor, OUwie, PoisBinNonNor, PoisBinOrd, PoisBinOrdNonNor, PoisBinOrdNor, PoisNonNor, PoisNor, qtlhot, sda, st, trigger, whitening
Reverse imports: AZIAD, bigmds, BinOrdNonNor, biospear, BNrich, bootnet, boral, cape, carSurv, clipper, clustrd, CopulaCenR, corHMM, covequal, cpvSNP, debCAM, deepgmm, ERP, facmodTS, FADA, flap, flowStats, FoReco, FRCC, fspe, GDILM.ME, GeneScape, GGMnonreg, GhostKnockoff, graphicalExtremes, gsDesign2, GWpcor, gwpcormapper, hfr, HSPOR, idm, IRCcheck, iTOP, jackstraw, knockoff, leakyIV, lfa, list, lvnet, M3C, MCMCglmm, MetaHD, MetaIntegration, methyLImp2, MetNet, mglasso, mixOmics, mlVAR, MM4LMM, modnets, mogsa, multivarious, MultiVarMI, netassoc, netgsa, NetOrigin, parma, PathoStat, pcalg, pcev, PCGII, PCRA, penalizedSVM, perARMA, phantSEM, pivmet, psychonetrics, qgg, qgraph, r4ss, ratematrix, relaimpo, REndo, rmgarch, RMTL, RNGforGPD, sae.prop, SCCS, seedCCA, segMGarch, SEMgraph, semPlot, SimTimeVar, SLBDD, snm, sparsediscrim, sparsevar, spduration, StabilizedRegression, subselect, TOAST, TPCselect, ttScreening, vampyr, variancePartition, VARshrink, varTestnlme, WLogit, xLLiM
Reverse suggests: BLCOP, CMA, DEGraph, fMRIscrub, fMRItools, GGMncv, HDShOP, NMF, picante, PortfolioAnalytics, SAMtool, sharp


Please use the canonical form to link to this page.