Learn R Programming

MplusAutomation (version 0.8)

mixtureSummaryTable: Create a summary table of Mplus mixture models

Description

Creates a summary table of model fit statistics and relevant diagnostic information for a list of mixture models. Default statistics reported are in line with published guidelines (see Jung & Wickrama, 2008; Nylund et al., 2007): c("Title", "Classes", "Warnings", "AIC", "BIC", "aBIC", "Entropy", "T11_VLMR_PValue", "T11_LMR_PValue", "BLRT_PValue", "min_N", "max_N", "min_prob", "max_prob"). The table is customizable using the keepCols parameter, which is passed through to SummaryTable.

Usage

mixtureSummaryTable(
  modelList,
  keepCols = c("Title", "Classes", "Warnings", "AIC", "BIC", "aBIC", "Entropy",
    "T11_VLMR_PValue", "T11_LMR_PValue", "BLRT_PValue", "min_N", "max_N", "min_prob",
    "max_prob")
)

Arguments

modelList

A list of models returned from the extractModelSummaries function.

keepCols

A vector of character strings indicating which columns/variables to display in the summary. Only columns included in this list will be displayed (all others excluded). By default, keepCols is: c("Title", "Classes", "Warnings", "AIC", "BIC", "aBIC","Entropy", "T11_VLMR_PValue", "T11_LMR_PValue", "BLRT_PValue", "min_N", "max_N", "min_prob", "max_prob").

Value

An object of class data.frame.

See Also

SummaryTable

Examples

Run this code
# NOT RUN {
createMixtures(classes = 1:3, filename_stem = "iris", rdata = iris)
runModels(filefilter = "iris")
results <- readModels(filefilter = "iris")
mixtureSummaryTable(results)
createMixtures(classes = 1:3, filename_stem = "iris", rdata = iris,
               OUTPUT = "tech11 tech14;")
runModels(filefilter = "iris", replaceOutfile = "modifiedDate")
results <- readModels(filefilter = "iris")[c(1:2)]
mixtureSummaryTable(results)
# }

Run the code above in your browser using DataLab