Description Usage Arguments Value See Also Examples
This function uses the EM algorithm to do clustering in P-dimensions. It assumes all clusters are spherically N(μ_m, Σ_m I).
1 | em_clust_mvn(data, nclust, itmax = 10000, tol = 10^-8)
|
data |
An 'n x p' data matrix or data frame. |
nclust |
The number of clusters. |
itmax |
The maximum number of iterations allowed. Defaults to 10000. |
tol |
Tuning parameter for convergence. Defaults to 10^-8. |
A list containing: it
the number of iterations; clust_prop
the estimated mixture proportions; clust_params
the estimated mixture parameters;
mix_est
a vector of the estimated mixture for each data point; log_lik
the
log likelihood of the data; bic
the modeled BIC.
em_clust_norm
, em_clust_mvn_miss
, gen_clust
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.