MixModel-class {epigenomix} | R Documentation

## Class `"MixModel"`

### Description

This class stores a fitted mixture model.

### Objects from the Class

A virtual Class: No objects may be created from it.

### Slots

`mmData`:

  Object of class `"numeric"` storing the data.

`configuration`:

  Object of class `"list"` storing configuration. See notes for details.

`results`:

  Object of class `"list"` storing results. See notes for details.

### Methods

as.data.frame

  `signature(object = "MixModel")`: Returns a data.frame containing the z-scores and classification results. The optional argument `classificationMethod` can be used to change the default classification method.

classification

  `signature(object = "MixModel", method = "character")`: Assess classification results.

classification

  `signature(object = "MixModel", method = "missing")`: Assess classification results.

components

  `signature(object = "MixModel")`: Assess mixture components.

mmData

  `signature(object = "MixModel")`: Assess data.

dim

  `signature(x = "MixModel")`: Assess dimension, i.e. numer of data points and number of components.

length

  `signature(x = "MixModel")`: Number of data points.

listClassificationMethods

  `signature(object = "MixModel")`: List available classification methods.

show

  `signature(object = "MixModel")`: Print an object of `MixModel` on screen.

summary

  `signature(object = "MixModel")`: Returns a list of data frames summarizing the parameter estimations for each component.

weights

  `signature(object = "MixModel")`: Asses the components weights.

### Note

Slots `configuration` and `results` are lists with named elements. The following elements make up the minimum set of element that must be present. Depending on the method that was used to fit the mixture model, more elements may be present.

Slot `configuration` has at least one element.

1. inits A list with at least two elements: `component` and `pi`. `components` contains a list of objects of `MixtureComponent-class` storing the inital parameters of the mixture components. `pi` is a vector storing the initial components' weights.

Slot `results` has at least three elements.

1. components A list of objects of `MixtureComponent-class` storing the fitted mixture components.

2. pi A numeric vector holding the estimated components' weights.

3. classification A list of numeric vectors of the same length as `data` storing the classification results.

### Author(s)

Hans-Ulrich Klein (h.klein@uni-muenster.de)

### See Also

`mlMixModel` `bayesMixModel` MixModelML MixModelBayes

### Examples

    showClass("MixModel")

[Package epigenomix version 1.27.1 Index]