Shrinkage estimator of the covariance matrix, given a data set and a covariance target.
shrink.estim.Rd
The shrinkage estimator is computed independently of the target's nature.
Arguments
- x
A \(n \times p\) matrix (the data set) .
- tar
A \(p \times p\) matrix (the covariance target).
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.
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"