pd_to_spread: Calculate spread with Default Probability

Description Usage Arguments Value See Also

Description

pd_to_spread to calculate spread using the probability of default, tenor and recovery rate.

Usage

1
2
pd_to_spread(x, recovery.var = "recovery", currency.var = "currency",
  tenor.var = "tenor", date.var = "date", pd.var = "pd")

Arguments

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.

date.var

character, column in x containing date variable.

pd.var

name of the column containing the probability of default in decimals.

Value

vector containing the spread values in basis points, calculated by inverting the formula for probability of default given in the Bloomberg Manual

See Also

spread_to_pd



Search within the creditr package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.