mplusbasicmix2 | R Documentation |
mplusbasicmix: A package for batch running and tabulating latent class and latent profile analyses Through Mplus.
mplusbasicmix2(filename, ext, namedata, namesare_data, usevar_data, missflag,
classes, starts, refinestarts, categoricallist = NULL)
filename |
This will be the name of the Mplus .inp files created. Requires quotes. Number of classses in the file will be appended to the end of the filename. For insance "filename1.inp, filename2.inp..." |
ext |
for now, just for testing. Just write ".inp"–Quotes required. |
namedata |
this is the name of .dat dataset that will be created by the namesare_data set. Quotes required. Example: "dataname" |
namesare_data |
This is an R data frame (no quotes) that is the complete dataset used. No quotes. Still must be Mplus compatible in terms of no alpha characters. However, the dataset must have column names.No quotes. |
usevar_data |
This is an R data frame (no quotes) that is a subset of the names_are data. These are the variables used in analysis. You can have the namesare_data and Use_var data be the same. |
missflag |
This is the missing flag (no quotes, just a number) corresponding to missing in Mplus. What value do you have that connotes missing. |
classes |
Number of classes you want to run (no quotes, just a number). If you enter 6, the function will create and run 1:6 classes and tabulate. |
starts |
Number of starts (no quotes, just a number) |
refinestarts |
Number of final starts you wish to run (no quotes) |
categoricalist |
(no quotes). This is the "categorical are" option in mplus. Subset of data that include categorical variables. Must include for dichotomous or other categorical. If LPA do not put anything here. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.