From the portfolio contributions of individual assets, such as those of a particular asset class
or manager, the multiperiod contribution is neither summable from nor the geometric compounding of
single-period contributions. Because the weights of the individual assets change through time as
transactions occur, the capital base for the asset changes.
Instead, the asset's multiperiod contribution is the sum of the asset's dollar contributions from
each period, as calculated from the wealth index of the total portfolio. Once contributions are
expressed in cumulative terms, asset contributions then sum to the returns of the total portfolio for
the period.
Valid period character strings for period include: "weeks", "months", "quarters", "years", or "all".
These are calculated internally via endpoints
. See that function's help page for further details.
For the special period "all", the contribution is calculated over all rows,
giving a single contribution across all observations.