Description Usage Arguments Value Examples
View source: R/matrixBuilder.R
Adjusts an inexact transition matrix, which may have zero-rows and zero-columns and/or may
showcase sums of rows that slightly differ from 1. This two aspects may
occur as a result of parsing a transition rate matrix as given by ESMA website (see
ESMAtransRateReader
), where certain credit ratings are never experienced
and decimal representation of fractions leads to approximation errors.
1 |
T |
A transition rate matrix |
The adjusted transition matrix
1 2 3 4 5 | A <- matrix(c(0.33, 0.66, 0.00, 0.00,
0.16, 0.17, 0.66, 0.00,
0.50, 0.00, 0.50, 0.00,
0.00, 0.00, 0.00, 0.00), nrow = 4, byrow = TRUE)
matrixBuilder(A)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.