dmnorm: The probability density function for the multivariate normal...

Description Usage Arguments Value Author(s) Examples

Description

Computes the density of a multivariate normal distribution

Usage

1
dmnorm(x, mean = rep(0, d), varcov, log = FALSE)

Arguments

x

vector of length d or matrix with d columns, giving the coordinates of points where density is to evaluated

mean

numeric vector giving the location parameter of the distribution

varcov

a positive definite matrix representing the scale matrix of the distribution

log

a logical value; if TRUE, the logarithm of the density is to be computed

Value

vector of density values

Author(s)

Jim Albert

Examples

1
2
3
4
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)


Search within the LearnBayes package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.