Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rmvnorm

Multivariate Normal Distribution.


Description

Random generation for the multivariate normal distribution.

X ~ N_p(μ, Σ)

Usage

rmvnorm(n = 1, mu = rep(0, p), sigma = diag(p))

Arguments

n

number of samples.

mu

mean

sigma

covariance matrix.

Value

a n x p matrix with samples in its rows.

Examples

CVarE:::rmvnorm(20, sigma = matrix(c(2, 1, 1, 2), 2))
CVarE:::rmvnorm(20, mu = c(3, -1, 2))

CVarE

Conditional Variance Estimator for Sufficient Dimension Reduction

v1.1
GPL-3
Authors
Daniel Kapla [aut, cph, cre], Lukas Fertl [aut, cph], Efstathia Bura [ctb]
Initial release
2021-03-09

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.