powered by
Computes the density of a multivariate normal distribution
dmnorm(x, mean = rep(0, d), varcov, log = FALSE)
vector of length d or matrix with d columns, giving the coordinates of points where density is to evaluated
numeric vector giving the location parameter of the distribution
a positive definite matrix representing the scale matrix of the distribution
a logical value; if TRUE, the logarithm of the density is to be computed
vector of density values
# NOT RUN { mu <- c(1,12,2) Sigma <- matrix(c(1,2,0,2,5,0.5,0,0.5,3), 3, 3) x <- c(2,14,0) f <- dmnorm(x, mu, Sigma) # }
Run the code above in your browser using DataLab