Skip to contents

The shrinkage estimator is computed independently of the target's nature.

Usage

shrink.estim(x, tar)

Arguments

x

A \(n \times p\) matrix (the data set) .

tar

A \(p \times p\) matrix (the covariance target).

Value

A \(p \times p\) shrinkage covariance matrix and the estimated \(\lambda\).

References

J. Schaefer and K. Strimmer, 2005. A shrinkage approach to large-scale covariance matrix estimation and implications for functional genomics. Statist. Appl. Genet. Mol. Biol. 4:32.

Author

Monika Jelizarow and Vincent Guillemot

Examples


# Simulate dataset
x <- matrix(rnorm(20*30),20,30)
# Try different targets
shrink.estim(x,tar=build.target(x,type="D"))
#> Error in shrink.estim(x, tar = build.target(x, type = "D")): could not find function "shrink.estim"