powered by
Simulate an multivariate series following Geometric Brownian Motion (GBM)
rGbm(name, time, start = 100, mu = 0.01, sigma = 0.02)
a simulated multivariate GBM series
vector of series names
vector of time, must be a "Date" type variable
vector of start positions
vector of mu
mu
vector of sigma
sigma
date <- as.Date("2015-01-01") + days(0:29) rGbm(c("bear", "tiger", "swan"), date)
Run the code above in your browser using DataLab