flexmix (version 2.3-9)

posterior: Determine cluster membership and posterior probabilities

Description

Determine posterior probabilities or cluster memberships for a fitted flexmix or unfitted FLXdist model.

Usage

## S3 method for class 'flexmix,missing':
posterior(object, newdata, unscaled = FALSE, ...)
## S3 method for class 'FLXdist,listOrdata.frame':
posterior(object, newdata, unscaled = FALSE, ...)
## S3 method for class 'flexmix,missing':
clusters(object, newdata, ...)
## S3 method for class 'FLXdist,ANY':
clusters(object, newdata, ...)

Arguments

object
An object of class "flexmix" or "FLXdist".
newdata
Data frame or list containing new data. If missing the posteriors of the original observations are returned.
unscaled
Logical, if TRUE the component-specific likelihoods are returned.
...
Currently not used.