\HeaderA{Mvnorm}{The Multivariate Normal Distribution}{Mvnorm}
\aliasA{dmvnorm}{Mvnorm}{dmvnorm}
\aliasA{rmvnorm}{Mvnorm}{rmvnorm}
\keyword{distribution}{Mvnorm}
\keyword{multivariate}{Mvnorm}
\begin{Description}\relax
These functions provide information about the multivariate normal
distribution with mean equal to \code{mean} and covariance matrix
\code{sigma}. \code{dmvnorm} gives the density and \code{rmvnorm}
generates random deviates.
\end{Description}
\begin{Usage}
\begin{verbatim}
dmvnorm(x, mean, sigma, log=FALSE)
rmvnorm(n, mean, sigma)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] Vector or matrix of quantiles. If \code{x} is a matrix, each
row is taken to be a quantile.
\item[\code{n}] Number of observations.
\item[\code{mean}] Mean vector, default is \code{rep(0, length = ncol(x))}.
\item[\code{sigma}] Covariance matrix, default is \code{diag(ncol(x))}.
\item[\code{log}] Logical; if \code{TRUE}, densities d are given as log(d).
\end{ldescription}
\end{Arguments}
\begin{Author}\relax
Friedrich Leisch <Friedrich.Leisch@ci.tuwien.ac.at>
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{pmvnorm}{pmvnorm}}, \code{\LinkA{rnorm}{rnorm}}, \code{\LinkA{qmvnorm}{qmvnorm}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
dmvnorm(x=c(0,0))
dmvnorm(x=c(0,0), mean=c(1,1))
x <- rmvnorm(n=100, mean=c(1,1))
plot(x)
\end{ExampleCode}
\end{Examples}

