RFoptions(seed=0) ## *ANY* simulation will have the random seed 0; set
## RFoptions(seed=NA) to make them all random again
rho <- matrix(nc=3, c(1, 0.5, 0.2, 0.5, 1, 0.6, 0.2, 0.6, 1))
model <- RMparswmX(nudiag=c(1.3, 0.7, 2), rho=rho)
x.seq <- y.seq <- seq(-10, 10, if (interactive()) 0.1 else 5)
z <- RFsimulate(model = model, x=x.seq, y=y.seq)
plot(z)
FinalizeExample()
Run the code above in your browser using DataLab