Description Usage Arguments Value See Also Examples
Construct a popular target matrix from the linear shrinkage literature. These targets consist of a combination of variance and correlation structure. Possible variance structures are unit, sample mean, and sample. Possible correlation structures are zero, sample mean, and autocorrelation.
1 | getTarget(X, varNumber = 2L, corNumber = 1L)
|
X |
|
varNumber |
|
corNumber |
|
matrix
– target matrix for linear shrinkage
estimation.
1 2 3 4 5 6 | set.seed(102)
X <- matrix(rnorm(50), 10, 5) # p=10, n=5, identity covariance
X <- t(scale(t(X), center=TRUE, scale=FALSE)) # mean 0
getTarget(X, varNumber = 1, corNumber = 1) # unit variance, zero correlation
getTarget(X, varNumber = 2, corNumber = 1) # equal variance, zero correlation
getTarget(X, varNumber = 3, corNumber = 1) # sample variances, zero correlation
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.