Description Usage Arguments Value Examples
Draws realizations from a normal mixture model. First, the cluster
membership is drawn from a multinomial distribution, with mixture proportions
specified by pi
. Conditional on cluster membership, the observation is
drawn from a multivariate normal distribution, with cluster-specific mean and
variance. The cluster means are provided using m
, and the cluster
covariance matrices are provided using v
.
1 |
n |
Observations. |
k |
Number of mixture components. Defaults to 1. |
pi |
Mixture proportions. If omitted, components are assumed equi-probable. |
m |
Vector of means, one for each component k. |
v |
Vector of variances, one for each component k. |
Numeric matrix containing the mixture component and the observation.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.