chiPlot | R Documentation |
Plots the dendrogram of a CHI portfolio.
chiPlot(
sigma,
mu = NULL,
meta_loss = c("MaxDiv", "ERC"),
UB = NULL,
LB = NULL,
groups = NULL,
group.UB = NULL,
group.LB = NULL,
gamma = 0,
max_tilt = 1,
max_leaf_size = 3,
ymax = NULL,
horiz = FALSE,
...
)
sigma |
a |
mu |
a |
meta_loss |
a loss function of the most diversified hierarchical allocation graph. |
UB |
scalar or |
LB |
scalar or |
groups |
vector of group IDs. The names of the vector must be identical to the asset names. |
group.UB |
scalar or |
group.LB |
scalar or |
gamma |
risk aversion parameter. Default: |
max_tilt |
maximum percentage reduction in the effective number of assets. Default: |
max_leaf_size |
maximum size of the leaf nodes. Default is |
ymax |
upper limit for y axis |
horiz |
rotate the dendrogram |
... |
arguments passed to |
The dendrogram is generated using hierarchical clustering and modified
so that the height differential between any two splits is the shrinkage weight of
the lower split (ranging between 0
and 1
). With no shrinkage, all shrinkage weights
are equal to 1
and the dendrogram has a height of p
. With shrinkage
the dendrogram has a height of (\kappa \times p)
.
The leaf nodes are colored to indicate the coefficient sign, with the size indicating the absolute magnitude of the coefficients.
A color bar on the right indicates the relative contribution of each level to the coefficient of determination, with darker hues representing a larger contribution.
A plotted dendrogram.
Johann Pfitzinger
CHI
and chiSigma
methods
# Load returns of assets or portfolios
data("Industry_10")
rets <- Industry_10
sigma <- cov(rets)
chiPlot(sigma, UB = 0.15)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.