Initialize EM parameters given group assignments
init_param(counts, groups, psc = 1e-04)
an observation by variable matrix of non-negative integer counts.
A character vector or factor, the same length as the number of columns in counts. The assignment of the index in groups corresponds to the group assignment of the column index in counts. Thus, the ordering of groups must be consistent with the column ordering in counts.
Pseudocount to add to the resulting mean for each multinomial mean parameter.
List
A observation by k matrix of multinomial means.
A numeric vector of length k of micture coefficients.