Faster than mvtnorm::dmvnorm(). Implemented in C.

dmvnorm(x, mean, Cov, logd = FALSE, is_chol = FALSE)

Arguments

x

the observation (nxp matrix)

mean

mean vector (row vector, 1xp)

Cov

covariance matrix (pxp)

logd

if TRUE, return the log-density

is_chol

if TRUE, Cov is the upper Cholesky factor of Cov

Value

the density in x (nx1)

See also