BinomialTree | R Documentation |
This R function will provide real option prices for underlying assets (Infrastructure Projects, Buildings, etc) using binomial lattice.
BinomialTree(S, I, Time, r, sigma, dt, k = NA, imm = TRUE)
S |
State Variable |
I |
Investment (vector): Ex: I = cumprod(c(30, rep(1+0.06, n))) |
Time |
Investment Horizon (yearly) |
r |
Rate of Return |
sigma |
Fluctuations in the Price of State Variable |
dt |
Time Intervals within a Year |
k |
Risk-Adjusted Growth Factor |
imm |
Cashflows are collected immediately after investemnt in the same yesr if it is TRUE, otherwise collect cashflows after one year (default is TRUE) |
Returns a binomial tree for the state variable "S", cashflow matrix calculated from the binomial tree and the investment cost, decision matrix for investment for different situations through the investment horizon, and a binomial tree plot.
BinomialTree(S=50, I=cumprod(c(30, rep(1+0.06, 5))), Time=5, r=0.07, sigma=0.15, dt=1, k =1.02, imm=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.