R/estimate-profiles-mplus.R
estimate_profiles_mplus2.Rd
Estimates latent profiles (finite mixture models) using the commercial
program Mplus, through the R-interface of
MplusAutomation
.
estimate_profiles_mplus2(
df,
n_profiles,
model_numbers,
select_vars,
...,
keepfiles = FALSE
)
data.frame with two or more columns with continuous variables
Numeric vector. The number of profiles (or mixture components) to be estimated. Each number in the vector corresponds to an analysis with that many mixture components.
Numeric vector. Numbers of the models to be estimated.
See estimate_profiles
for a description of the models available
in tidyLPA.
Character. Optional vector of variable names in df
,
to be used for model estimation. Defaults to NULL
, which means all
variables in df
are used.
Parameters passed directly to
mplusModeler
. See the documentation of
mplusModeler
.
Logical. Whether to retain the files created by
mplusModeler
(e.g., for future reference, or to manually edit them).
An object of class 'tidyLPA' and 'list'