Annual effective spot rates by maturity in years, annually compounded:
linear in the rate between maturities and flat before the first and
after the last (issue #553; design note docs/design/reserving-ifrs17.md).
The discount factor of a payment at t years is (1 + r(t))^-t.
discount_curve_factor() and discount_curve_rate() read the curve at
t.
Usage
discount_curve(maturities, rates)
discount_curve_factor(curve, t)
discount_curve_rate(curve, t)
Arguments
- maturities
Maturities in years: finite, positive and strictly
increasing. A flat curve is one maturity (the rate holds at every
maturity).
- rates
The spot rate at each maturity: finite and above -1.
- curve
A discount_curve.
- t
Times in years.
Value
discount_curve(): a discount_curve with the properties
maturities and rates. discount_curve_factor() and
discount_curve_rate(): a numeric vector, one value per t.
Examples
curve <- discount_curve(c(1, 5), c(0.02, 0.04))
discount_curve_rate(curve, 3)
#> [1] 0.03
discount_curve_factor(curve, c(1, 2))
#> [1] 0.9803922 0.9518144