1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
\name{dmnorm}
\alias{dmnorm}
\title{The probability density function for the multivariate normal (Gaussian) probability distribution }
\description{
Computes the density of a multivariate normal distribution
}
\usage{
dmnorm(x, mean = rep(0, d), varcov, log = FALSE)
}
\arguments{
\item{x}{vector of length d or matrix with d columns, giving the coordinates of points where density is to evaluated}
\item{mean}{numeric vector giving the location parameter of the distribution}
\item{varcov}{a positive definite matrix representing the scale matrix of the distribution}
\item{log}{a logical value; if TRUE, the logarithm of the density is to be computed}
}
\value{
vector of density values
}
\author{Jim Albert}
\examples{
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)
}
\keyword{models}
|