inst/book/ex2.09.R

# ex2.09.R
# geometric Brownian Motion
require(sde)
set.seed(123)
d <- expression( x ) 
s <- expression( 0.5*x ) 
sde.sim(X0=10,drift=d, sigma=s) -> X
plot(X,main="geometric Brownian Motion")

Try the sde package in your browser

Any scripts or data that you put into this service are public.

sde documentation built on Sept. 9, 2022, 3:07 p.m.