x <- seq(-4,4,length=15)
xi <- c(0.5, -1)
Omega <- diag(2)
Omega[2,1] <- Omega[1,2] <- 0.5
alpha <- c(2,2)
pdf <- dmst(cbind(x,2*x-1), xi, Omega, alpha, df=5)
rnd <- rmst(10, xi, Omega, alpha, 6)
library(mvtnorm) # only once in the session
cdf <- pmst(c(2,1), xi, Omega, alpha, df=5)
Run the code above in your browser using DataLab