Description Usage Arguments Details Value See Also
A class that defines the bare bones of a credit curve pricing structure.
1 | CreditCurve(survival_probabilities, reference_date, interpolation, specs)
|
survival_probabilities |
a |
reference_date |
a |
interpolation |
an |
specs |
CDS curve specifications that inherits from |
A term structure of credit spread is a curve showing several credit spreads across different contract lengths (2 month, 2 year, 20 year, etc...) for a similar debt contract. The curve shows the relation between the (level of) crdit spread and the time to maturity, known as the "term", of the debt for a given borrower in a given currency. When the effect of coupons on spreads are stripped away, one has a zero-coupon credit curve.
The following interpolation schemes are supported by ZeroCurve
:
ConstantInterpolation
, LinearInterpolation
, LogDFInterpolation
and
CubicInterpolation
. Points outside the calibration region use constant
extrapolation on the zero hazard rate.
a CreditCurve
object
curve_specs <- CDSMarkitSpec(rating = "AAA", region = "Japan", sector = "Utilities")
zero_curve <- build_zero_curve()
ref_date <- zero_curve$reference_date
specs <- CDSMarkitSpec(rating = "AAA", region = "Japan", sector = "Utilities")
cds_curve <- CDSCurve(reference_date = ref_date, tenors = c(1, 3, 5, 7),
spreads = c(0.0050, 0.0070, 0.0090, 0.0110), lgd = .6, premium_frequency = 4,
specs = curve_specs)
sp <- as_SurvivalProbabilities(x = cds_curve, zero_curve = zero_curve)
CreditCurve(survival_probabilities = sp, reference_date =ref_date,
interpolation = CubicInterpolation(), specs = curve_specs)
Interpolation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.