Description Usage Arguments Author(s) References See Also Examples
Aggregates weights up to the chosen level from the
hierarchy. Hierarchy can be used from the
buildHierarchy
function or defined manually in the
same way as the buildHierarchy
's output. If for
the selected level the values in the hierarchy are
numeric, the aggregation of returns or weights is
performed by quintiles.
1 | Weight.level(wp, Rp, h, level = "Sector")
|
Rp |
xts, data frame or matrix of portfolio returns |
wp |
vector, xts, data frame or matrix of portfolio weights |
h |
data.frame with portfolio hierarchy |
level |
level from the hierarchy to which returns and weights will be aggregated |
Andrii Babii
Christopherson, Jon A., Carino, David R., Ferson, Wayne E. Portfolio Performance Measurement and Benchmarking. McGraw-Hill. 2009. Chapter 17
buildHierarchy
Attribution
Return.level
1 2 | data(attrib)
Weight.level(wp = attrib.weights[1, ], Rp = attrib.returns[, 1:10], attrib.hierarchy, level = "Sector")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.