predict.em {em}R Documentation

Predict the fitted finite mixture models

Description

Predict the fitted finite mixture models

Usage

## S3 method for class 'em'
predict(object, prob = c("prior", "posterior"), ...)

Arguments

object

Output from em, representing a fitted model using EM algorithm.

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.

Value

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'.


[Package em version 1.0.0 Index]