Learn R Programming

MplusAutomation (version 0.2-5)

extractModelParameters: Extract Model Parameters from MODEL RESULTS section.

Description

Extracts the model parameters from the MODEL RESULTS section of a given Mplus output file. Parameters include the parameter estimate, std. err, param/s.e., and two-tailed p-value. Model results are returned as a data.frame object.

Usage

extractModelParameters(outfile, resultType="raw")

Arguments

outfile
the output file to be parsed for model parameters. May be a full path, relative path, or a filename within the working directory. Example: "C:/Users/Michael/Mplus Runs/Model 23.out"
resultType
The results section to extract. If raw, the unstandardized estimates will be returned. "stdyx", "stdy", and "std" are the other options, which extract different standardized solutions. See the Mplus User's Guide for additional details

Value

  • returns a data.frame containing the MODEL RESULTS section of outfile. Variables include
  • paramHeaderThe header that begins a given parameter set. Example: "FACTOR1 BY"
  • paramThe particular parameter being measured (within paramHeader). Example: "ITEM1"
  • paramestParameter estimate value.
  • seStandard error of the estimate
  • est_seQuotient of paramest/se, representing z-test/t-test in large samples
  • pvalTwo-tailed p-value for the est_se quotient.
  • If the model contains multiple latent classes, an additional variable, LatentClass, will be included, specifying the latent class number. Also, the Categorical Latent Variables section will be included as LatentClass "CatVars."

See Also

extractModelSummaries