pricer_analytic: Analytic European option pricing under three basic models

Description Usage Arguments Details Value

View source: R/analyticPricers.R

Description

Compute European option prices under three basic models: Black-Scholes, Merton's jump diffusion, and a log-normal mixture.

Usage

1
pricer_analytic(strikes, expiries, spot, model, type = "call")

Arguments

strikes

vector of strike prices

expiries

vector of maturities, in trading years

spot

the current spot price of the underlying

model

the dynamics defining the model, see details

type

the type of option to price

Details

The argument model must be a named list of

For "gbm" and "merton", param should be a vector of the risk-free rate, volatility, and the same with the mean rate of jumps and jump parameters. For "mixture" it must be a matrix of probabilities, risk-neutral rate, and volatilities.

Value

data.frame


shill1729/pricing documentation built on Jan. 9, 2022, 12:56 a.m.