Home   >   User Resources   >   Online Help   >   apaAttribution.Consolidate.Segment
 

 

Function index Version 3.0.0

apaAttribution.Consolidate.Segment(SegmentNames, Level, Segment, PortfolioWeights, PortfolioReturns, BenchmarkWeights, BenchmarkReturns, IsRescaled)

Excel=apaAttribution.Consolidate.Segment(SegmentNames, Level, Segment, PortfolioWeights, PortfolioReturns, BenchmarkWeights, BenchmarkReturns, IsRescaled)

Result

Consolidates the portfolio constituents within a certain segment of a level.

Syntax

SegmentNames: segment structure of portfolio. Each column contains a level, rows contain segments.

Level: level in the structure to consolidate

Segment: number of the segment in the level chosen

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

IsRescaled: TRUE to rescale weights such that they sum up to 100%, FALSE to simply sum up the weights