CBOE_VIX_index | R Documentation |
Following the VIX whitepaper, the VIX index is calculated as a linear interpolation. This function uses the following formula: \mjsdeqn\sigma_VIX = 100 \sqrt \big( \omega T_1 \sigma_1^2 + (1- \omega) T_2 \sigma_2^2 \big) \frac525,60043,200 where the subscripts \mjseqn1 and \mjseqn2 indicate the near-and next-term options, \mjseqnT_\cdot to the time to expiration in years and the \mjseqn\omega to the linear interpolation weights.
CBOE_VIX_index(maturity, sigma_sq)
maturity |
|
sigma_sq |
|
Returns a numeric scalar
giving the VIX index value
library(R.MFIV) CBOE_VIX_index(maturity = c(0.074, 0.09), sigma_sq = c(0.3, 0.5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.