powered by
This function computes the density of a multivariate normal distribution.
dmvnorm(x, mean, Sigma, log = FALSE)
A numeric, the density value.
numeric
A numeric, a quantile vector of length p.
p
A numeric, the mean vector of length p.
A matrix, the covariance matrix of dimension p x p.
matrix
A logical, if TRUE the logarithm of the density value is returned. By default, log = FALSE.
logical
TRUE
log = FALSE
x <- c(0, 0) mean <- c(0, 0) Sigma <- diag(2) dmvnorm(x = x, mean = mean, Sigma = Sigma) dmvnorm(x = x, mean = mean, Sigma = Sigma, log = TRUE)
Run the code above in your browser using DataLab