'Errors in plot_profiles using tidyLPA
I have been trying to use tidyLPA but get an error when trying to plot my profiles. estimate_profiles works fine but plot_profiles keeps causing issues
This is my code:
m3 <- palpa_wide
dplyr::select(1:42)
estimate_profiles(3)
plot_profiles()
The subsequent error is:
Error in '[.data.frame'(df_raw, , c("model_number","classes_number", : undefined columns selected
I then modify the code to this:
m3 <- palpa_wide %>%
dplyr::select(1:42) %>%
estimate_profiles(3) %>%
plot_profiles("1","3")
The error for that is:
Error in guess(varying) : failed to guess time-varying variables from their names
I've been trying for hours to fix this. And I either get the first error or the second error. Any help would be appreciated!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
