implied_rate | R Documentation |
Computes implied rates to compounding factors.
implied_rate(x, t, val, ...)
x |
a Compounding object or a character with the compounding name. |
t |
a numeric representing the term. |
val |
a numeric representing the compounding factor. |
... |
additional arguments. Currently unused. |
If the x
argument is a character
with a valid compounding name
(simple
, discrete
, continuous
) the function
instanciates a Compounding object and then computes the implied rate
for the given compounding values and terms.
A numeric value that represents a spot rate.
implied_rate("simple", 2, 1.1)
implied_rate("discrete", 2, 1.1025)
implied_rate("continuous", 2, 1.105170918)
comp <- compounding("discrete")
compound(comp, 0.06, 2) # equals (1 + 0.06) ^ 2 = 1.1236
implied_rate(comp, 1.1236, 2) # equals 0.06
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.