flexmix-class {flexmix}R Documentation

Class "flexmix"

Description

A fitted flexmix model.

Usage

## S4 method for signature 'flexmix':
cluster(object)
## S4 method for signature 'flexmix':
parameters(object, component=1, model=1)
## S4 method for signature 'flexmix':
posterior(object)

Arguments

object An object of class "flexmix".
component Number of component.
model Number of model.

Slots

model:
List of FLXmodel objects.
prior:
Numeric vector with prior probabilities of clusters.
posterior:
Named list with elements scaled and unscaled, both matrices with one row per observation and one column per cluster.
iter:
Number of EM iterations.
k:
Number of clusters.
cluster:
Cluster assignments of observations.
size:
Cluster sizes.
logLik:
Log-likelihood at EM convergence.
df:
Total number of parameters of the model.
components:
List describing the fitted components using FLXcomponent objects.
formula:
Object of class "formula".
control:
Object of class "FLXcontrol".
call:
The function call used to create the object.
group:
Object of class "factor".
converged
Logical, TRUE if EM algorithm converged.

Accessor Functions

The following functions should be used for accessing the corresponding slots:

cluster:
Cluster assignments of observations.
parameters:
The parameters for each model and component, return value depends on the model.
posterior:
A matrix of posterior probabilities for each observation.

Author(s)

Friedrich Leisch


[Package flexmix version 1.1-0 Index]