Predict the fitted finite mixture models
# S3 method for em
predict(object, prob = c("prior", "posterior"), ...)An object of class `predict.em` is a list containing at least the following components:
components a list of fitted values by components with each element
a matrix/vector of fitted values.
mean a matrix of predicted values computed by weighted sum of fitted values by components.
The weights used in the computation can be either prior probabilities or posterior probabilities
depending on the parameter `prob`.
prob the value used in the parameter `prob`.
Output from em, representing a fitted model using EM algorithm.
the probabilities used to compute the fitted value. It can be either prior probability (`prior`) or posterior probability (`posterior`). The default value is `prior`.
other arguments.