powered by
callperpetual and putperpetual compute prices of perpetual American options. The functions optionally return the exercise barriers (the prices at which the options are optimally exercised).
callperpetual
putperpetual
callperpetual(s, k, v, r, d, showbarrier) putperpetual(s, k, v, r, d, showbarrier)
Price of the underlying asset
Strike price
Volatility of the asset price, defined as the annualized standard deviation of the continuously-compounded return
Annual continuously-compounded risk-free interest rate
Dividend yield, annualized, continuously-compounded
Boolean (FALSE). If TRUE, the option price and exercise barrier are returned as a list
Option price, and optionally the optimal exercise barrier.
Returns a scalar or vector of option prices, depending on the inputs
callperpetual(s, k, v, r, tt, d)
# NOT RUN { s=40; k=40; v=0.30; r=0.08; d=0.02; callperpetual(s, k, v, r, d) putperpetual(s, c(35, 40, 45), v, r, d, showbarrier=TRUE) # }
Run the code above in your browser using DataLab