prices.GBM | R Documentation |
Get parameter files from efforts-abm folder
prices.GBM(N, sigma, mu, S0, Wt = NULL)
N |
Number of days in the path. |
sigma |
Volatility or standard deviation of daily continuously compounded returns. |
mu |
Drift or average daily continuously compounded returns. |
S0 |
The initial price of the asset. |
Wt |
The cumulative Brownian motion of the model. This can be supplied or left as NULL. In the case that it is NULL, a vector will be provided. If you include this argument, it must be a vector of length N of the cumulative sum of a random variable to work properly. |
Creates a single asset path of daily prices using Geometric Brownian Motion.
A vector of length N containing the asset prices generated by the specified GBM
## Not run:
prices.GBM()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.