apaAttribution.Consolidate.Level(SegmentNames, Level, PortfolioWeights, PortfolioReturns, BenchmarkWeights, BenchmarkReturns, IsBottomUpOtherwiseTopDown)
Excel
=apaAttribution.Consolidate.Level(SegmentNames, Level, PortfolioWeights, PortfolioReturns, BenchmarkWeights, BenchmarkReturns, IsBottomUpOtherwiseTopDown)Result
Consolidates all portfolio segments up to a certain level.
Syntax
SegmentNames: segment structure of portfolio. Each column contains a level, rows contain segments.
Level: level in the structure to consolidate
PortfolioWeights: n x 1 vector of portfolio segment weights
PortfolioReturns: n x 1 vector of portfolio segment returns
BenchmarkWeights: n x 1 vector of benchmark segment weights
BenchmarkReturns: n x 1 vector of benchmark segment returns
IsBottomUpOtherwiseTopDown: TRUE to consolidate bottom-up, FALSE to consolidate top-down. Affects the consolidation result
