Description Usage Arguments Value
View source: R/credit-methods.R
Bootstraps Survival Probabilitie from a CDS curve Using credule package. The output of bootstrapping is a vector of cumulative survival probabilities.
1 2 3 | ## S3 method for class 'CDSCurve'
as_SurvivalProbabilities(x, zero_curve,
num_timesteps_pa = 12, accrued_premium = TRUE, ...)
|
x |
An object of type |
zero_curve |
An object of type |
num_timesteps_pa |
It represents the number of timesteps used to perform the numerical integral required while computing the default leg value. It is shown that a monthly discretisation usually gives a good approximation (Ref. Valuation of Credit Default Swaps, Dominic O Kane and Stuart Turnbull) |
accrued_premium |
If set to TRUE, the accrued premium will be taken into account in the calculation of the premium leg value. |
... |
other parameters passed to methods |
An object of type SurvivalProbabilitiesCurve
an SurvivalProbabilities
object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.