irr {jrvFinance} | R Documentation |
Internal Rate of Return
Description
Computes IRR (Internal Rate of Return) for cash flows with different cash flow and compounding conventions. Cash flows need not be evenly spaced.
Usage
irr(
cf,
interval = NULL,
cf.freq = 1,
comp.freq = 1,
cf.t = seq(from = 0, by = 1/cf.freq, along.with = cf),
r.guess = NULL,
toler = 1e-06,
convergence = 1e-08,
max.iter = 100,
method = c("default", "newton", "bisection")
)
Arguments
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
|