Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

changeBaseCurrency

Change Covariance Matrix According to Change of Base Currency


Description

This function allow to change the base risk factor covariance matrix according to a change of base currency, the function also update the mapping.table and ask the user to provide new names for the new fx base risks.

Usage

changeBaseCurrency(cov.mat, mapping.table, target.currency, mapping.name)

Arguments

cov.mat

matrix value corresponding to the covariance matrix of base risk factors. This matrix should have an attribute named "base.currency" indicating the actual base currency in which the covariance matrix is expressed.

mapping.table

S3 object of class mappingTable that should be coherent with the cov.mat.

target.currency

character value of length one indicating the new base currency, this should exists in the mapping.table.

mapping.name

data.frame indicating the mapping towards new name in the covariance matrix and in the mapping.table for the new fx rate with two columns:

  • old.name: the names of the old risk factors in the covariance matrix.

  • new.name: the new names of these risk factors.

Value

a list with two named fields:

  • cov.mat: the new covariance matrix.

  • mapping.table the new mapping.table.


sstModel

Swiss Solvency Test (SST) Standard Models

v1.0.0
GPL-3 + file LICENSE
Authors
Loris Michel [aut], Melvin Kianmanesh Rad [aut], Adrien Lamit [aut], Michael Schmutz [cre], Swiss Financial Market Supervisory Authority FINMA [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.