Description Usage Arguments See Also
View source: R/CashFlowMatrix.R
An dataframe containing bond cash flow. The first three rows include the price, accured interest, and yield to maturity, and modified duration. CashFlowMatrix[5:ncol,] (first five rows) matches the maturity matrix for yield curve fitting should match the number of rows of the maturity matrix
1 | CreateCashFlowMatrix(trade.date, bonddata)
|
trade.date |
The trade date |
bonddata |
A dataframe of bond data. The complete dataframe must consist of the following names columns: cusip, interestrate, issuedate, dateddate, maturitydate, type, close. |
Other Interest Rate Models:
Bterm()
,
CreateMaturitiesMatrix()
,
HullWhite()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.