cov_shrink_to_honey: Shrink the Covariance Matrix towards Hollywood!

Description Usage Arguments Value Author(s) References Examples

View source: R/cov_shrink_to_honey.R

Description

Implements the covariance matrix described in Ledoit & Wold (2003).

Usage

1
cov_shrink_to_honey(R, shrink = NULL, portfolio = TRUE)

Arguments

R

A vector, matrix, data.frame, xts, timeSeries or zoo object to be checked and coerced.

shrink

A number between 0 and 1.

portfolio

If TRUE only the covariance matrix is printed. If FALSE a list is returned with the covariance-matrix and the shrinkage intensity.

Value

A variance-covariance matrix.

Author(s)

Bernardo Reckziegel

References

Ledoit, Olivier, and Michael Wolf. Honey, I shrunk the sample covariance matrix. UPF economics and business working paper 691 (2003).

Examples

1
2
3
4
library(PortfolioAnalytics)
data(edhec)
cov_shrink_to_honey(edhec)
cov_shrink_to_honey(edhec, portfolio = FALSE)

Reckziegel/PortfolioMoments documentation built on May 29, 2019, 1:21 p.m.