Learn R Programming

HierPorfolios

This first release is of this R package is already available on CRAN.

Three hierarchical portfolio allocation strategies are implemented, namely:

  • Hierarchical Risk Parity (De Prado, 2016)
  • Hierarchical Clustering-Based Asset Allocation (Raffinot, 2017)
  • Hierarchical Equal Risk Controbution (Raffinot, 2018) [under construction]

Each strategy was implemented in an easy-to-use function: HRP_Portfolio, HACC_Portfolio and HERC_Portfolio.

References

  • De Prado, M. L. (2016). Building diversified portfolios that outperform out of sample. The Journal of Portfolio Management, 42(4), 59-69.
  • Raffinot, T. (2017). Hierarchical clustering-based asset allocation. The Journal of Portfolio Management, 44(2), 89-99.
  • Raffinot, T. (2018). The hierarchical equal risk contribution portfolio. Available at SSRN 3237540.

Installation

To install the latest version of this packge use the following commands:

install.packages("devtools")

devtools::install_github("ctruciosm/HierPorfolios")

Copy Link

Version

Install

install.packages('HierPorfolios')

Monthly Downloads

1

Version

0.1.0

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Carlos Trucios

Last Published

November 8th, 2021

Functions in HierPorfolios (0.1.0)

HRP_Portfolio

Hierarchical Risk Parity
mldp_returns

Returns of 10 simulated assets.
HCAA_Portfolio

Hierarchical Clustering-Based Asset Allocation
daily_returns

Daily returns (in percentage) of 15 assets.