tidyLPA icon indicating copy to clipboard operation
tidyLPA copied to clipboard

`pisaUSA15` Example not working with `MplusAutomation`

Open AnselmJeong opened this issue 3 years ago • 0 comments

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)

AnselmJeong avatar Aug 26 '21 14:08 AnselmJeong