View source: R/Shortfall_risk.R
Shortfall_risk | R Documentation |
The Shortfall risk function takes payoff from option, and their modife version and returns a mean of shortfall weighted by x^p function.
Shortfall_risk(payoff, modificate_payoff, p, rate, End_Time = 1, is_discounted = FALSE)
payoff |
a numeric vector of option payoff from trajectory simulations. |
modificate_payoff |
a numeric vector of modife option payoff from trajectory simulations. |
p |
numeric value, power of the loss function, p > 0. |
rate |
numeric value, risk free rate in the model, rate >= 0. |
End_Time |
numeric value, end time of the option. |
is_discounted |
logical value, if TRUE, payoff and modificate_payoff will be discounted. |
Shortfall_risk(5, 4, 1, 0.05, 1) Shortfall_risk(c(100, 120), c(100, 107.5), 3, 0.05, TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.