demo/emstep.r

library(EMCluster, quiet = TRUE)

x2 <- da2$da
emobj <- list(pi = da2$pi, Mu = da2$Mu, LTSigma = da2$LTSigma)

eobj <- e.step(x2, emobj)
emobj <- m.step(x2, eobj)
summary(emobj)

eobj <- list(Gamma = class2Gamma(da2$class))
emobj <- m.step(x2, eobj)
summary(emobj)

Try the EMCluster package in your browser

Any scripts or data that you put into this service are public.

EMCluster documentation built on Sept. 8, 2023, 5:55 p.m.