CBOE_interpolation_terms | R Documentation |
Provide either maturity
or date_t
and date_exp
This function determines the interpolation terms used for the VIX. It provides terms for the two different interpolation techniques used by the CBOE:
2003 VIX (monthly): using monthly options (see the 2009 CBOE Whitepaper)
2014 VIX (weekly): using weekly options (see the 2019 VIX whitepaper)
Both methods rely on a "near-term" and a "next-term" contract.
CBOE_interpolation_terms(maturity, date_t, date_exp, method)
maturity |
|
date_t |
(For the monthly method) |
date_exp |
(For the monthly method) |
method |
A |
Returns a numeric scalar
: 1
for the "near-term" and 2
for the "next-term".
If the maturity doesn't fall inside either category, NA
is returned.
library(R.MFIV) ## Weekly method CBOE_interpolation_terms(25/365, method = "weekly") ## Monthly method t <- lubridate::ymd("2020-01-02") exp <- lubridate::ymd("2020-02-21") CBOE_interpolation_terms(date_t = t, date_exp = exp, method = "monthly")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.