flexmix-class {flexmix}R Documentation

Class "flexmix"

Description

A fitted flexmix model.

Objects from the Class

Objects are typically created by calling function flexmix.

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.
cluster:
Cluster assignments of observations.
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.

Methods

AIC
signature(object = "flexmix"): calculate Akaike's information criterion.
BIC
signature(object = "flexmix"): calculate the Bayesian information criterion.
logLik
signature(object = "flexmix"): calculate the log-likelihood for the model.
parameters
signature(object = "flexmix"): extract parameters of model components.
predict
signature(object = "flexmix"): predict response for new data.

Author(s)

Friedrich Leisch


[Package Contents]