Description Details Author(s) References Examples
This package is a collection of various functions to extract the implied risk neutral density from option.
Package: | RND |
Type: | Package |
Version: | 1.2 |
Date: | 2017-01-10 |
License: | GPL (>= 2) |
Kam Hamidieh <khamidieh@gmail.com>
E. Jondeau and S. Poon and M. Rockinger (2007): Financial Modeling Under Non-Gaussian Distributions Springer-Verlag, London
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | ###
### You should see that all methods extract the same density!
###
r = 0.05
te = 60/365
s0 = 1000
sigma = 0.25
y = 0.02
call.strikes.bsm = seq(from = 500, to = 1500, by = 5)
market.calls.bsm = price.bsm.option(r =r, te = te, s0 = s0,
k = call.strikes.bsm, sigma = sigma, y = y)$call
put.strikes.bsm = seq(from = 500, to = 1500, by = 5)
market.puts.bsm = price.bsm.option(r =r, te = te, s0 = s0,
k = put.strikes.bsm, sigma = sigma, y = y)$put
###
### See where your results will be outputted to...
###
getwd()
###
### Running this may take a few minutes...
###
### MOE(market.calls.bsm, call.strikes.bsm, market.puts.bsm,
### put.strikes.bsm, s0, r , te, y, "bsm2")
###
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.