apaReturn.ModifiedDietz(BMV, EMV, CF, CFTime)
=apaReturn.ModifiedDietz(BMV, EMV, CF, CFTime)Result
Calculates the time-weighted return according to the Modified Dietz methodology.
Syntax
BMV: beginning market value
EMV: ending market value
CF: n x 1 vector of portfolio cash in- and outflows (contributions and withdrawals)
CFTime: n x 1 vector of the cash flow time points, between 0 and 1
Algorithm
Remarks
To get the original Dietz return, set all CFTime values equal to 0.5.
It is assumed that the time period between beginning and end equals one. Therefore, CFTime values are between 0 and 1. CFTime is measured from the beginning of the period to the point in time the cash flow occurs. E.g. a value of 0.25 means that the flow occurred after 25% of the investment period had passed, i.e. was invested for 75% of the investment period.
