Description Usage Arguments Value Examples
View source: R/interpolation-pairs.R
Get interpolation pairs for the yields, maturity dates and tenors.
1 | interpolation_pairs(retrieval_date, wal_date, maturity_dt, yields_dt)
|
retrieval_date |
Retrieval (anchor) date. |
wal_date |
Weighted average life as a date. |
maturity_dt |
|
yields_dt |
|
yields Yields of short and long tenor to interpolate between.
1 2 3 4 5 6 7 | retrieval_date <- lubridate::ymd( "2013-03-01" )
wal_date <- lubridate::ymd( "2014-06-21" )
data( bloomberg_goc, package = "blpxl" )
data( bloomberg_cad_maturity, package = "blpxl" )
list_args_pt1 <- list( wal_date = wal_date, retrieval_date = retrieval_date )
list_args_pt2 <- list( maturity_dt = bloomberg_cad_maturity, yields_dt = bloomberg_goc )
do.call( interpolation_pairs, args = c( list_args_pt1, list_args_pt2 ) )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.