data-edu / tidyLPA

Easily carry out Latent Profile Analysis (LPA) using open-source or commercial software
https://data-edu.github.io/tidyLPA/
Other
56 stars 17 forks source link

Return warnings? #162

Closed franciscowilhelm closed 4 years ago

franciscowilhelm commented 4 years ago

When fitting a model (sorry, non-reproducible example)

ana_mclust <- df %>% %>% 
    select("var1", "var2") %>%
    single_imputation() %>%
    estimate_profiles(1:7, models = 1)

I get the follow message: "One or more analyses resulted in warnings! Examine these analyses carefully: model_1_class_5, model_1_class_6, model_1_class_7" However, I could not find in the documentation or the available functions how to retrieve the exact warning messages returned from "mclust". How can I retrieve them?

Thanks, Francisco

cjvanlissa commented 4 years ago

The original mclust objects are in the results object, I think this would work:

ana_mclust[[5]]$model

Sounds, however, like models with >4 classes are too complex to estimate on these data.

franciscowilhelm commented 4 years ago

Thanks a lot, that works! For example, ana_mclust[[5]]$model$warnings returns the warning.

aspencage commented 1 year ago

This does not seem to return the warning in tidyLPA version 1.1.0