Description Usage Arguments Value Author(s) References Examples
View source: R/cov_shrink_to_honey.R
Implements the covariance matrix described in Ledoit & Wold (2003).
1 | cov_shrink_to_honey(R, shrink = NULL, portfolio = TRUE)
|
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 |
A variance-covariance matrix.
Bernardo Reckziegel
Ledoit, Olivier, and Michael Wolf. Honey, I shrunk the sample covariance matrix. UPF economics and business working paper 691 (2003).
1 2 3 4 | library(PortfolioAnalytics)
data(edhec)
cov_shrink_to_honey(edhec)
cov_shrink_to_honey(edhec, portfolio = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.