ranMvnXch {mvtBinaryEP} | R Documentation |
Generates multivariate normal data based on an EXCHANGEABLE correlation matrix.
ranMvnXch(rho, n, nRep = 1, seed = NULL)
rho |
correlation |
n |
cluster size |
nRep |
number of clusters (replications)s |
seed |
initializes the random number generator |
This is more efficient than ranMVN
and ranMVN2
for exchangeable
correlation. The returned matrix of responses, call it Y, has mean 0. We require that
rho
is greater than zero.
Returns a matrix of response variates of dimension nRep
by n