Given the individual component likelihoods for a mixture model, estimates the mixture proportions by an EM algorithm.
mixEM(matrix_lik, prior, pi_init = NULL, control = list())
A list, including the estimates (pihat), the log likelihood for each interation (B) and a flag to indicate convergence
a n by k matrix with (j,k)th element equal to
a k vector of the parameters of the Dirichlet prior on
the initial value of
A list of control parameters for the SQUAREM algorithm, default value is set to be control.default=list(K = 1, method=3, square=TRUE, step.min0=1, step.max0=1, mstep=4, kr=1, objfn.inc=1,tol=1.e-07, maxiter=5000, trace=FALSE).
Fits a k component mixture model