Computes IRR (Internal Rate of Return) for cash flows with different cash flow and compounding conventions. Cash flows need not be evenly spaced.
1 2 3 4 5 6 7 8 9 10 11 12 |
cf |
Vector of cash flows |
interval |
the interval c(lower, upper) within which to search for the IRR |
cf.freq |
Frequency of annuity payments: 1 for annual, 2 for semi-annual, 12 for monthly. |
comp.freq |
Frequency of compounding of interest rates: 1 for annual, 2 for semi-annual, 12 for monthly, Inf for continuous compounding. |
cf.t |
Optional vector of timing (in years) of cash flows. If omitted regular sequence of years is assumed. |
r.guess |
the starting value (guess) from which the solver starts searching for the IRR |
toler |
the argument |
convergence |
the argument |
max.iter |
the argument |
method |
The root finding method to be used. The
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.