ledoit_wolf: Ledoit and Wolf Shrinkage Estimator

Description Usage Arguments Value References Examples

View source: R/lw_estimator.R

Description

Compute the Ledoit and Wolf shrinkage estimator of the covariance matrix \insertCiteledoit2004wellGGMncv, which can be used for the initial inverse covariance matrix in ggmncv.

Usage

1

Arguments

Y

A data matrix (or data.frame) of dimensions n by p.

...

Currently ignored.

Value

Inverse correlation matrix.

References

\insertAllCited

Examples

1
2
3
4
5
6
7
8
# ptsd
Y <- ptsd[,1:5]

# shrinkage
ledoit_wolf(Y)

# non-reg
solve(cor(Y))

GGMncv documentation built on Dec. 15, 2021, 9:10 a.m.