Learn R Programming

flexmix (version 2.0-1)

posterior: Determine cluster membership and posterior probabilities

Description

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

Usage

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

Arguments

object
An object of class "flexmix" or "FLXdist".
newdata
Dataframe or list containing new data. If missing the posteriors of the original observations are returned.
...
Currently not used.