Description Usage Arguments Value References See Also Examples
View source: R/HRP_Portfolio.R
Performs the Hierarchical Risk Parity portfolio proposed strategy by De Prado (2016). Several linkage methods for the hierarchical clustering can be used, by default the "single" linkage is used.
1 | HRP_Portfolio(covar, linkage = "single", graph = FALSE)
|
covar |
Covariance matrix of returns. The covariance matrix will be transformed into correlation matrix and then into a distance matrix. |
linkage |
Linkage method used in the hierarchical clustering. Allowed options are "single", "complete", "average" or "ward". Default option is "single". |
graph |
To plot de dendrogram set this value to TRUE. By default this value is equal to FALSE. |
portfolio weights
De Prado, Marcos Lopez. "Building diversified portfolios that outperform out of sample." The Journal of Portfolio Management 42.4 (2016): 59-69.
1 2 | covar <- cov(mldp_returns)
HRP_Portfolio(covar)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.