rmixmvnorm {freqparcoord} | R Documentation |
Random vectors from mixtures of multivariate normal distributions.
Description
Generates random vectors from mixtures of multivariate normal distributions.
Usage
rmixmvnorm(n,dm,nmix,means,covs,wts=rep(1/nmix,nmix))
Arguments
n |
Number of random vectors to generate. |
dm |
Dimension i.e. length of each random vector. |
nmix |
Number of components in the mixture. |
means |
Mean vectors of the MV normal distributions; an R list
of |
covs |
Covariance matrices of the MV normal distributions; an R
list of |
wts |
Mixture probabilities. |
Value
An n
by dm
matrix of random vectors of length dm
,
grouped by MV normal distribution of origin.
Author(s)
Norm Matloff <matloff@cs.ucdavis.edu>
[Package freqparcoord version 1.0.1 Index]