Internal rate of return of a profit signature
IRR_profit.RdComputes the internal rate of return (IRR), defined as the rate \(r\) for which the net present value is zero.
Usage
IRR_profit(Pi, interval = c(0, 1), tol = .Machine$double.eps^0.5)Examples
Pi <- c(-15.00, 8.42, 8.39, 8.58)
IRR_profit(Pi)
#> [1] 0.3163508