clusterAndCollapse: clusterAndCollapse: fit a mixture model with minimum mean...

Description Usage Arguments Details Value Author(s) Examples

Description

This calls Mclust and then greedily collapses not-well-separated components.

Usage

1
  clusterAndCollapse(x, minSep, G = c(1:5))

Arguments

x

A vector or matrix

minSep

Minimum separation required between means of adjacent groups

G

Numbers of groups to fit (default is 1 through 5)

Details

Not yet.

Value

A list with two elements: $retain is the number of surviving components, $values is the reassigned values for each observation

Author(s)

Tim Triche, Jr..

Examples

1
2
3
  
  foo <- c(0, 0.1, 0.15, 0.2, 0.25, 0.3, 0.6, 0.7, 0.75, 0.8, 0.85, 0.9)
  clusterAndCollapse(foo, minSep=0.4)

ttriche/regulatoR documentation built on June 1, 2019, 2:51 a.m.