Description Usage Arguments Value References Examples
Compute the Ledoit and Wolf shrinkage estimator of
the covariance matrix \insertCiteledoit2004wellGGMncv,
which can be used for the initial
inverse covariance matrix
in ggmncv
.
1 | ledoit_wolf(Y, ...)
|
Y |
A data matrix (or data.frame) of dimensions n by p. |
... |
Currently ignored. |
Inverse correlation matrix.
1 2 3 4 5 6 7 8 | # ptsd
Y <- ptsd[,1:5]
# shrinkage
ledoit_wolf(Y)
# non-reg
solve(cor(Y))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.