Nothing
library(FER)
test_that("Bachelier Price and Impvol", {
strike <- runif(1000, 50, 150)
sigma <- runif(1000, 1, 20)
texp <- runif(1000, 1e-4, 10)
intr <- runif(1000, 0, 0.1)
divr <- runif(1000, 0, 0.1)
cp <- ifelse(runif(1000)>0.5, 1L, -1L)
p <- FER::BachelierPrice(strike, 100, texp, sigma, cp=cp, intr=intr, divr=divr)
iv <- FER::BachelierImpvol(p, strike, 100, texp, cp=cp, intr=intr, divr=divr)
p2 <- FER::BachelierPrice(strike, 100, texp, iv, cp=cp, intr=intr, divr=divr)
expect_equal(p, p2, tolerance = 1e-8)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.