Learn R Programming

xVA (version 1.1)

Calculates Credit Risk Valuation Adjustments

Description

Calculates a number of valuation adjustments including CVA, DVA, FBA, FCA, MVA and KVA. A two-way margin agreement has been implemented. For the KVA calculation three regulatory frameworks are supported: CEM, (simplified) SA-CCR, OEM and IMM. The probability of default is implied through the credit spreads curve. The package supports an exposure calculation based on SA-CCR which includes several trade types and a simulated path which is currently available only for IRSwaps. The latest regulatory capital charge methodologies have been implementing including BA-CVA & SA-CVA.

Copy Link

Version

Install

install.packages('xVA')

Monthly Downloads

63

Version

1.1

License

GPL-3

Maintainer

Tasos Grivas

Last Published

August 27th, 2022

Functions in xVA (1.1)

IS_ELIGIBLE_CCY

Checks if specified currency is low risk
CalcPD

Calculates the Probablity of Default
IS_IG

Checks if Credit rating is Investment Grade
calcEADRegulatory

Calculates the Exposure-At-Default (EAD)
CalcSimulatedExposure

Calculated the Simulated Exposure Profile
calcCVACapital

Calculates the CVA Capital Charge
LoadSupervisoryCVAData

Supervisory Data Loading
calcDefCapital

Calculates the Default Capital Charge
CalcVA

Calculates the Valuation Adjustment
CalcNGR

Calculates the Net/Gross ratio (NGR)
xVACalculatorExample

xVA calculation example
calcEffectiveMaturity

Calculates the Effective Maturity
xVACalculator

Calculates the xVA values
calcKVA

Calculates the Capital Valuation Adjustment (KVA)