ranMVN {mvtBinaryEP}R Documentation

Multivariate Normal Data

Description

Generates multivariate normal data based on a specified covariance matrix.

Usage

ranMVN(nRep = 1, Sigma, seed = NULL)

Arguments

nRep Numer of clusters (replications)
Sigma Specified covariance matrix
seed Initialize random number generator

Details

The returned matrix of responses, call it Y, has mean 0.

Value

Returns a matrix of response variates of dimension nRep by nrow(Sigma)

See Also

See Also ranMVN2, ranMvnXch, ep

Examples

mu = c(25.3, 28.4, 35.7, 50.2)
c1 = c(17, 11, 8, 10)
c2 = c(11, 17, 9, 8)
c3 = c(8, 9, 17, 9)
c4 = c(10, 8, 9, 17)
S = rbind(c1, c2, c3, c4)

y = mu + ranMVN(nRep = 25, S, seed = NULL)

[Package mvtBinaryEP version 1.0 Index]