Construct triple list of ecld objects by stdev, with lambda, and ratios related to stdev. This utility is used primarily in fixed point ATM hypothesis (when simulating VIX option smile).
ecop.get_ld_triple(
lambda = 3,
sd = 1,
beta = 0,
mu_plus_ratio = 0,
epsilon_ratio = 0,
atm_imp_k = NaN,
fn_shift = NULL
)
numeric, the lambda parameter. Must be positive. Default: 3.
numeric, the stdev parameter. Must be positive. Default: 1.
numeric, the skewness parameter. Default: 0.
numeric, numeric, excess value in addition to mu_D
,
relative to the stdev. Default: 0.
numeric, epsilon ratio relative to the stdev. Default: 0.
numeric, ATM implied log-strike. It is derived from ATM volatility times sqare root of time to expiration. If provided, it is used to calculate the fixed point shift, -(atm_imp_k - mu). Default: NaN. the rho slot in ld1 is populated with the value.
function, takes an ecld object and return the fixed point shift, -(atm_imp_k - mu). the rho slot in ld1 is populated with the value from this function. This serves as secondary method if you don't want to provide atm_imp_k directly.
a triple list of ecld objects. ld0 has mu=0 as vanila object; ld1 has mu and rho as prescribed; ld2 has mu=mu_D.
# NOT RUN {
lds <- ecop.get_ld_triple(3, 0.1)
ld1 <- lds$ld1
# }
Run the code above in your browser using DataLab