Other Initializations | R Documentation |
Two more functions with different initialization method.
starts.via.svd(x, nclass = 1, method = c("em", "kmeans"),
EMC = .EMC)
emgroup(x, nclass = 1, EMC = .EMC)
x |
the data matrix, dimension |
nclass |
the desired number of clusters, |
method |
method with the svd initializations. |
EMC |
the control for the EM iterations. |
The starts.via.svd
utilizes SVD to initial parameters,
and the emgroup
runs the EM algorithm starting from the
initial.
The starts.via.svd
returns an object with class svd
,
and the emgroup
returns and object emobj
with class
emret
.
Wei-Chen Chen wccsnow@gmail.com and Ranjan Maitra.
https://www.stat.iastate.edu/people/ranjan-maitra
init.EM
, .EMControl
.
library(EMCluster, quietly = TRUE)
set.seed(1234)
x1 <- da1$da
emobj <- emgroup(x1, nclass = 10)
summary(emobj)
ret.0 <- starts.via.svd(x1, nclass = 10, method = "kmeans")
summary(ret.0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.