rGbm {RMOPI}R Documentation

Simulate prices series of stocks

Description

Simulate an multivariate series following Geometric Brownian Motion (GBM)

Usage

rGbm(name, time, start = 100, mu = 0.01, sigma = 0.02)

Arguments

name

vector of series names

time

vector of time, must be a "Date" type variable

start

vector of start positions

mu

vector of mu

sigma

vector of sigma

Value

a simulated multivariate GBM series

Examples

date <- as.Date("2015-01-01") + days(0:29)
rGbm(c("bear", "tiger", "swan"), date)

[Package RMOPI version 1.1 Index]