Takes an object of class 'tidyLPA', containing multiple latent profile models with different number of classes or model specifications, and helps select the optimal number of classes and model specification.
compare_solutions(x, statistics = "BIC")
An object of class 'tidyLPA'.
Character vector. Which statistics to examine for determining the optimal model. Defaults to 'BIC'.
An object of class 'bestLPA' and 'list', containing a tibble of fits
'fits', a named vector 'best', indicating which model fit best according to
each fit index, a numeric vector 'AHP' indicating the best model according to
AHP, an object 'plot' of class 'ggplot', and a numeric
vector 'statistics' corresponding to argument of the same name.
Caspar J. van Lissa
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.