File: rmvnorm.Rd

package info (click to toggle)
r-cran-mixtools 1.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,828 kB
  • ctags: 20
  • sloc: ansic: 733; makefile: 6
file content (26 lines) | stat: -rwxr-xr-x 779 bytes parent folder | download | duplicates (5)
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
\name{rmvnorm}
\alias{rmvnorm}
\title{Simulate from a Multivariate Normal Distribution}
\description{
  Simulate from a multiviate normal distribution
}
\usage{
rmvnorm(n, mu=NULL, sigma=NULL)
}
\arguments{
  \item{n}{Number of vectors to simulate}
  \item{mu}{mean vector}
  \item{sigma}{covariance matrix, assumed symmetric and nonnegative definite}
}
\value{
  An \eqn{n \times d}{n x d} matrix in which each row is an independently
  generated realization from the desired multivariate normal distribution
}
\details{
This function uses an \code{\link{eigen}} decomposition assuming \code{sigma} is symmetric.
In particular, the upper triangle of \code{sigma} is ignored.
}
\seealso{
  \code{\link{eigen}}, \code{\link{dnorm}}, \code{\link{dmvnorm}}
}
\keyword{distribution}