R/rMVN.r

Defines functions rMVN

Documented in rMVN

rMVN <- function(n, mean, sigma) {
            L  <- mroot(sigma)
            lL <- ncol(L)
            t(mean + L%*%matrix(rnorm(lL*n), lL, n)) 
}
egeminiani/GJRM documentation built on Sept. 1, 2020, 6:41 p.m.