fit_mixtures: Fit mixtures. Turns out this was useful outside of...

Description Usage Arguments Value See Also

View source: R/fit_mixtures.R

Description

Fit a Gaussian mixture model to x and log1p(x) with 1-2 components (default). Whichever has the lowest BIC wins. Nothing fancy! If nothing wins, then put all of the observations into the same group and leave them all eligible. For prescreening of potential cluster-by-sample combinations, see find_eligible.

Usage

1
fit_mixtures(x, G = 1:2, log = TRUE, keep = FALSE)

Arguments

x

the thing to fit a 1D mixture to

G

vector of component numbers (default is 1:2)

log

take log1p of x? (TRUE)

keep

keep the model fits as an attribute? (FALSE)

Value

1
 list of fits, length 1 if log == FALSE 

See Also

1
find_eligible

trichelab/velocessor documentation built on Jan. 5, 2022, 6:27 p.m.