rGbm | R Documentation |
Simulate an multivariate series following Geometric Brownian Motion (GBM)
rGbm(name, time, start = 100, mu = 0.01, sigma = 0.02)
name |
vector of series names |
time |
vector of time, must be a "Date" type variable |
start |
vector of start positions |
mu |
vector of |
sigma |
vector of |
a simulated multivariate GBM series
date <- as.Date("2015-01-01") + days(0:29) rGbm(c("bear", "tiger", "swan"), date)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.