View source: R/put_Newton_convex.R
put_Newton_convex | R Documentation |
The put_Newton_convex function is used to find second constant L in modified put option.
put_Newton_convex(L1, strike, drift, rate, vol, p, epsilon = 1e-10)
L1 |
numeric value, first constant L1 > K. |
strike |
numeric value, strike price for put option. |
drift |
numeric value, drift of the model. |
rate |
numeric value, risk free rate in the model, r >= 0. |
vol |
numeric value, volatility of the model, vol > 0. |
p |
numeric value, power of the loss function, p > 1. |
epsilon |
numeric value, acceptable calculation error |
There is a need to be careful when there is a warning message. It means that a numerical error occurred during the algorithm and the algorithm was terminated without a while loop
A numeric value, a second constant for modified put option by convex function.
put_Newton_convex(70, 100, 0.1, 0, 0.2, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.