The function ties the model vector yield to an equivalent CPR yield using secant method of interpolation.
1 2 3 4 5 6 7 8 | ModelToCPR(
bond.id,
settlement.date,
term.structure,
original.bal,
price,
yield
)
|
bond.id |
A character string referring to an object of type MBSDetails. |
settlement.date |
A character string the settlement date. |
term.structure |
A character string referring to an object of type |
original.bal |
A numeric value the original balance. |
price |
A character string the price. |
yield |
A numeric value the yield to maturity given a prepayment model vector |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.