predict.em | R Documentation |
Predict the fitted finite mixture models
## S3 method for class 'em' predict(object, prob = c("prior", "posterior"), ...)
object |
Output from |
prob |
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. |
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'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.