yield.time {FinancialMath} | R Documentation |
Time Weighted Yield
Description
Calculates the time weighted yield.
Usage
yield.time(cf,bal)
Arguments
cf |
vector of cash flows |
bal |
vector of balances |
Details
i^{tw}=\prod_{k=1}^n (\frac{bal_{1+k}}{bal_k+cf_k})-1
Value
The time weighted yield.
Note
Length of cash flows must be one less than the length of balances.
If lengths are equal, it will not use final cash flow.
Author(s)
Kameron Penn and Jack Schmidt
See Also
Examples
yield.time(cf=c(0,200,100,50),bal=c(1000,800,1150,1550,1700))
[Package FinancialMath version 0.1.1 Index]