This is an internal (non-exported) function. This help page provides additional documentation mainly intended for developers and expert users.
a matrix of likelihoods, where the (i,k)th entry is the probability of observation i given it came from component k of g
numeric vector specifying value from which to initialize optimization
numeric vector specifying prior to use in the penalized likelihood
a string, giving name of optimization function to use
a list of parameters to be passed to optmethod
numeric vector specifying the optimal mixture weights