Learn R Programming

MplusAutomation (version 0.2-5)

extractModelSummaries: Extract summary statistics from a single output file or from a group of Mplus models within a directory

Description

Parses a group of Mplus model output files (.out extension) for model fit statistics. At this time, the details extracted are fixed and include: Filename, InputInstructions, Title, Estimator, LL, BIC, aBIC, AIC, AICC, Parameters, Observations, CFI, TLI, RMSEA_Estimate, RMSEA_90CI_LB, RMSEA_90CI_UB, RMSEA_pLT05, ChiSqM_Value, ChiSqM_DF, ChiSq_PValue, BLRT_KM1LL, BLRT_PValue, BLRT_Numdraws). The infrastructure is in place to allow for user-specified selection of summary statistics in future versions.

Usage

extractModelSummaries(target = getwd(), recursive = FALSE, filefilter)

Arguments

target
the directory containing Mplus output files (.out) to parse OR the single output file to be parsed. Defaults to the current working directory. Example: "C:/Users/Michael/Mplus Runs"
recursive
optional. If TRUE, parse all models nested in subdirectories within directory. Defaults to FALSE.
filefilter
a Perl regular expression (PCRE-compatible) specifying particular output files to be parsed within directory. See regex or http://www.pcre.org/pcre.txt for details about regular expression syntax.

Value

  • Returns a data.frame containing model fit statistics for all output files within directory. The data.frame contains the following variables:
  • TitleTitle for the model, specified by the TITLE: command
  • FilenameFilename of the output file
  • InputInstructionsA string containing the full input syntax for the model
  • EstimatorEstimator used for the model (e.g., ML, MLR, WLSMV, etc.)
  • LLLog-likelihood of the model
  • BICBayesian Information Criterion
  • aBICSample-Size-Adjusted BIC (Sclove, 1987)
  • AICAkaike's Information Criterion
  • AICCCorrected AIC, based on Sugiura (1978) and recommended by Burnham & Anderson (2002)
  • ParametersNumber of parameters estimated by the model
  • ObservationsThe number of observations for the model (does not suppport multiple-groups analysis at this time)
  • CFIConfirmatory Fit Index
  • TLITucker-Lewis Index
  • RMSEA_EstimatePoint estimate of root mean squared error of approximation
  • RMSEA_90CI_LBLower bound of the 90% Confidence Interval around the RMSEA estimate.
  • RMSEA_90CI_UBUpper bound of the 90% Confidence Interval around the RMSEA estimate.
  • RMSEA_pLT05Probability that the RMSEA estimate falls below .05, indicating good fit.
  • ChiSqM_ValueModel chi-squared value
  • ChiSqM_DFModel chi-squared degrees of freedom
  • ChiSqM_PValueModel chi-squared p value
  • BLRT_KM1LLLog-likelihood of the K-1 model (one less class) for the Bootstrapped Likelihood Ratio Test (TECH14).
  • BLRT_PValueP-value of the Bootstrapped Likelihood Ratio Test (TECH14) testing whether the K class model is significantly better than K-1
  • BLRT_NumdrawsThe number of bootstrapped samples used in the Bootstrapped Likelihood Ratio Test
  • SRMRStandardized root mean square residual
  • WRMRWeighted root mean square residual
  • ChiSqBaseline_ValueBaseline (unstructured) chi-squared value
  • ChiSqBaseline_DFBaseline (unstructured) chi-squared degrees of freedom
  • ChiSqBaseline_PValueBaseline (unstructured) chi-squared p value

See Also

regex runModels