| check_discount_factor_fcn | R Documentation |
Ensure discount factor function satisfies the time-reversal identity
df(t,T) = 1/df(T,t)
. Emits a warning, whenever that identity is violated, returns TRUE if no problems are found.
check_discount_factor_fcn(discount_factor_fcn, time_pts, tolerance = 1e-06)
discount_factor_fcn |
A function for computing present values, with
arguments |
time_pts |
A vector of time points at which to test the
consistency of |
tolerance |
Relative tolerance within which the reversal identity is considered to hold |
Discount factors that have underflowed to zero or overflowed to infinity carry no usable information about the reversed factor, so such pairs are silently ignored rather than flagged.
TRUE if the discount factor function appears
consistent at every tested pair, otherwise FALSE
Other Input Checking:
check_survival_probability_fcn(),
check_variance_cumulation_fcn(),
warn_once_negative_default_intensity()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.