data-edu / tidyLPA

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

`pisaUSA15` Example not working with `MplusAutomation` #182

Open AnselmJeong opened 3 years ago

AnselmJeong commented 3 years ago

I tried to replicate the basic example as documented in the README.md

However, the following is the error I received...

library(tidyverse)
library(tidyLPA)
#> You can use the function citation('tidyLPA') to create a citation for the use of {tidyLPA}.
#> Mplus is installed; you can use package = 'MplusAutomation' when calling estimate_profiles().
pisaUSA15[1:100, ] %>%
  select(broad_interest, enjoyment, self_efficacy) %>%
  single_imputation() %>%
  estimate_profiles(3, package = "MplusAutomation")
#> Error in names(fits) <- c("LogLik", "AIC", "AWE", "BIC", "CAIC", "CLC", : 'names' attribute [16] must be the same length as the vector [10]

Created on 2021-08-26 by the reprex package (v2.0.1)