sim.gbm.matrix | R Documentation |
Simulate paths of correlated GBM
sim.gbm.matrix(x0, model, dt = model$dt)
x0 |
is the starting values. Should be a matrix of size N x |
model |
contains all the other parameters.
In particular, need |
dt |
is the step size (Defaults to |
Simulate correlated multivariate Geometric Brownian motion
with a given model$rho
and arbitrary model$sigma
's. Calls rmvnorm
from mvtnorm
a vector of the new states (same dimension as x0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.