Description Usage Arguments Value Author(s) Examples
Takes a list of Mplus output files of class modelList
,
containing only mixture models with a single categorical latent variable, and
converts it to an object of class tidyLPA
.
1 | as.tidyLPA(modelList)
|
modelList |
A list of class |
A list of class tidyLPA
.
Caspar J. van Lissa
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
library(MplusAutomation)
createMixtures(classes = 1:4, filename_stem = "cars",
model_overall = "wt ON drat;",
model_class_specific = "wt; qsec;",
rdata = mtcars,
usevariables = c("wt", "qsec", "drat"),
OUTPUT = "standardized")
runModels(replaceOutfile = "modifiedDate")
cars_results <- readModels(filefilter = "cars")
results_tidyLPA <- as.tidyLPA(cars_results)
results_tidyLPA
plot(results_tidyLPA)
plot_profiles(results_tidyLPA) # Throws error; missing column 'Classes'
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.