spread_to_pd | R Documentation |
spread_to_pd
approximates the default probability at time given the
spread
spread_to_pd(
x,
recovery.var = "recovery",
currency.var = "currency",
tenor.var = "tenor",
maturity.var = "maturity",
date.var = "date",
spread.var = "spread"
)
x |
data frame, contains all the relevant columns. |
recovery.var |
character, column in x containing recovery rates. ISDA model standard recovery rate asscumption is 0.4. |
currency.var |
character, column in x containing currency. |
tenor.var |
character, column in x containing tenors. |
maturity.var |
character, column in x containing maturity date. |
date.var |
character, column in x containing date variable. |
spread.var |
character, column in x containing spread in basis points. |
vector containing the probability of default, calculated by using the formula for probability of default given in the Bloomberg Manual
pd_to_spread
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.