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

rmvnormal

Multivariate Gaussian simulation


Description

Fast simulation from multivariate Gaussian probability distribution.

Usage

rmvnormal(n, mu, sigma)

Arguments

n

An integer giving the number of observations to be simulated.

mu

A numeric vector of dimension p giving the means of normal distribution.

sigma

A variance-covariance matrix of dimension p times p.

Details

The rmvnormal function is copied from the GMCM-package. It is similar to rmvnorm from the mvtnorm-package.

Value

Returns a n by p matrix of observations from a multivariate normal distribution with the given mean mu and covariance

Author(s)

Anders Ellern Bilgrau

Examples

rmvnormal(n = 10, mu = 1:4, sigma = diag(4))

rags2ridges

Ridge Estimation of Precision Matrices from High-Dimensional Data

v2.2.4
GPL (>= 2)
Authors
Carel F.W. Peeters [cre, aut], Anders Ellern Bilgrau [aut], Wessel N. van Wieringen [aut]
Initial release

We don't support your browser anymore

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