View source: R/choose_clusters.R
choose_clusters | R Documentation |
This removes the clusters from a fit object. There are 2 conditions that can be used to filter out clusters: 1) the cluster size (mixing proportion), which one can require to be above a certain cutoff, and 2) the Binomial peak, whichi one can ask to be above a certain value in at least a certain number of dimensions. Output clusters will be renamed by size (C1 will be larger etc.), and the latent variables and hard clustering assignments will be updated accordingly.
choose_clusters( x, binomial_cutoff = 0.05, dimensions_cutoff = 1, pi_cutoff = 0.02, re_assign = FALSE )
x |
An object of class 'vb_bmm'. |
binomial_cutoff |
Minimum Binomial success probability. |
dimensions_cutoff |
Minimum number of dimensions where we want to detect a Binomial component. |
pi_cutoff |
Minimum size of the mixture component. |
re_assign |
If |
An object of class 'vb_bmm'.
data(fit_mvbmm_example) choose_clusters(fit_mvbmm_example)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.