R/rmnorm.R

Defines functions rmnorm

Documented in rmnorm

rmnorm <-
function(n, mean=NULL, vcov=1)
{
  d <- NCOL(vcov)
  y <- matrix(rnorm(n * d), d, n)
  y <- crossprod(y,chol(vcov))
  if(!is.null(mean)){ y <- t(mean + t(y)) }
  return(y)
}

Try the lgarch package in your browser

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

lgarch documentation built on May 1, 2019, 6:33 p.m.