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)) 
}

Try the GJRM package in your browser

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

GJRM documentation built on July 9, 2023, 7:15 p.m.