rmnorm: Multivariate normal distributions

Description Usage Arguments Value Examples

View source: R/rmnorm.R

Description

Simulate random values from a multivariate normal distribution.

Usage

1
rmnorm(n, S)

Arguments

n

number of random vectors that is to be simulated.

S

a valid covariance matrix.

Value

Returns a matrix with n rows and i columns, where i is determined by the size of the specified covariance matrix.

Examples

1
rmnorm(n = 10, S = covmatrix(hsq = 0.5, sib = 0))

FireGutter/geneference documentation built on Dec. 17, 2021, 8:27 p.m.