e.step {mixture} | R Documentation |
Carries out the E-step for EM algorithm
e.step(data=NULL, gpar=NULL, labels=NULL, v=1)
data |
A matrix or data frame such that rows correspond to observations and columns correspond to variables. Note that this function currently only works with multivariate data p > 1. |
gpar |
A list of the model parameters. |
labels |
A vector of groups labels. If |
v |
The value for deterministic annealing. If v=1 the standard estimate is used. |
Carries out the E-step for EM algorithm
A nxG matrix of weights.
data("x2") u0 = runif(nrow(x2)) m0 = m.step(data=x2, covtype="VVV", w=cbind(u0,1-u0), D=NULL, mtol=1e-8, mmax=10) w0 = e.step(data=x2, gpar=m0, labels=NULL, v=1)