mvrnorm: Simulate from a Multivariate Normal Distribution

Description Usage Arguments Value

View source: R/functions_utility.R

Description

Produces one or more samples from the specified multivariate normal distribution.

Usage

1
mvrnorm(n, mu, sigma)

Arguments

n

the number of samples required.

mu

a vector giving the means of the variables.

sigma

a positive-definite symmetric matrix specifying the covariance matrix of the variables.

Value

If n = 1 a vector of the same length as mu, otherwise an n by length(mu) matrix with one sample in each row.


contextual documentation built on July 26, 2020, 1:06 a.m.