Description Usage Arguments Value Note Author(s) Examples
View source: R/BSM_utilities.R
Convert TO discrete compounding FROM continuous
1 | r_discrete(r_c, freq)
|
r_c |
the continuously compounded rate of return |
freq |
how often the discrete rate is compounded (2 => semiannual) |
the discrete rate of return
FV = PV * (1 + discrete / freq) ** (freq * years)
FV = PV * exp(continuous * years)
George Fisher GeorgeRFisher@gmail.com
1 2 3 4 5 6 7 8 9 10 11 | PV <- 9000
FV <- 13000
years <- 3
freq <- 2 # compounding frequency = 2 => semi-annual
(r_continuous <- CAGR(PV, FV, years, type="continuous"))
(r_discrete <- r_discrete(r_continuous, freq))
PV * (1 + r_discrete / freq) ** (freq * years)
PV * exp(r_continuous * years)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.