Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

as.tidyLPA

Convert Mplus output to object of class 'tidyLPA'


Description

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.

Usage

as.tidyLPA(modelList)

Arguments

modelList

A list of class modelList, as generated by readModels.

Value

A list of class tidyLPA.

Author(s)

Caspar J. van Lissa

Examples

## 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)

tidyLPA

Easily Carry Out Latent Profile Analysis (LPA) Using Open-Source or Commercial Software

v1.0.8
MIT + file LICENSE
Authors
Joshua M Rosenberg [aut, cre], Caspar van Lissa [aut], Jennifer A Schmidt [ctb], Patrick N Beymer [ctb], Daniel Anderson [ctb], Matthew J. Schell [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.