BinomialTree_MC | R Documentation |
This R function will provide real option prices and the probability of investment within the investment horizon using binomial lattice and monte carlo simulations.
BinomialTree_MC(S, I, Time, r, sigma, dt, k = NA, imm = TRUE, MC_loops)
S |
State Variable |
I |
Investment vector: Ex: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) |
MC_loops |
Number of Monte Carlo Simulations |
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, a binomial tree plot, and the likelihood of implementation plot.
BinomialTree_MC(S=50, I=cumprod(c(30, rep(1+0.06, 5))), Time=5, r=.07, sigma=0.15, dt=1, k=1.02, imm = FALSE, MC_loops = 1000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.