Learn R Programming

⚠️There's a newer version (1.1.1) of this package.Take me there.

MplusAutomation (version 0.6-1)

Automating Mplus Model Estimation and Interpretation

Description

The MplusAutomation package leverages the flexibility of the R language to automate latent variable model estimation and interpretation using Mplus, a powerful latent variable modeling program developed by Muthen and Muthen (www.statmodel.com). Specifically, MplusAutomation provides routines for creating related groups of models, running batches of models, and extracting and tabulating model parameters and fit statistics.

Copy Link

Version

Install

install.packages('MplusAutomation')

Monthly Downloads

4,629

Version

0.6-1

License

LGPL-3

Maintainer

Michael Hallquist

Last Published

May 8th, 2013

Functions in MplusAutomation (0.6-1)

evaluateConditional

Evaluate Conditional
cd

Change directory
MplusAutomation

Automating Mplus Model Estimation and Interpretation
extractModIndices

Extract model modification indices.
extractSummaries_1plan

Worker function used in extractSummaries_1section
extractSummaries_1file

Extract the summaries from one file
HTMLSummaryTable

Create an HTML file containing a summary table of Mplus model statistics
coef.mplusObject

Return coefficients for an mplusObject
prepareMplusData_Mat

Prepare Mplus Data Matrix
paramExtract

Extract parameters from a data frame of Mplus estimates
LatexSummaryTable

Display summary table of Mplus model statistics in separate window
lookupSimpleTags

Simple tag lookup
replaceBodyTags

Replace Body Tags
lookupTech1Parameter

Lookup the matrix element for a give parameter number
createSyntax

Create the Mplus input text for an mplusObject
extractResiduals

Extract residual matrices
extractTech10

Extract Technical 10 matrix from Mplus
extractTech1

Extract Technical 1 matrix from Mplus
getSavedata_Bparams

Load the draws from the Bayesian model posterior distribution (SAVEDATA BPARAMETERS) command into an R data.frame
mplusRcov

Create Mplus code for various residual covariance structures.
addHeaderToSavedata

Add header to saved data
replaceInitTags

Replace Init Tags
addNode

Add a node to a GRAPHVIZ model
matrixExtract

Extract Factor Score Statistics
divideIntoFields

Divide text into fields
runModels_Interactive

Run Mplus Models Using Graphical Interface
processInit

Process the Init Section
plot.mplusObject

Plot coefficients for an mplusObject
connectNodes

Connect two nodes
showSummaryTable

Display summary table of Mplus model statistics in separate window
finalizeInitCollection

Finalize Init Collection
update.mplusObject

Update an Mplus model object
compareModels

Compare the output of two Mplus models
extractParameters_1section

Extract Parameters for One Section
mplus.traceplot

Plot the samples for each MCMC chain as a function of iterations
extractFacScoreStats

Extract Factor Score Statistics
createVarSyntax

Create Mplus syntax for variable names
runModels

Run Mplus Models
extractParameters_1file

Extract Parameters for One File
extractWarningsErrors_1file

Extract warnings and errors from 1 mplus file
splitDFByRow

Split a data frame into a list by rows
getSavedata_Fileinfo

Read Variable Names, Formats, and Widths from data generated by the SAVEDATA Command
summary.mplusObject

Summarize an mplusObject
extractInput_1file

Extract and parse Mplus input file
parseMplus

Check Mplus code for missing semicolons or too long lines.
mplusObject

Create an Mplus model object
extractTech3

Extract Technical 3 matrix from Mplus
extractSummaries_1section

Extract summary information for one section from Mplus output
prepareMplusData

Create tab-delimited file and Mplus input syntax from R data.frame
recurseReplace

Recursive replace
l_getSavedata_Fileinfo

local function that does the work of getSaveData_Fileinfo
subsetModelList

Subset a list of Mplus model results
readModels

Read Parameters, Summary Statistics, and Savedata from Mplus Output
mplusModeler

Create, run, and read Mplus models.
createModels

Create Mplus Input Files from Template
processConditionalTags

Process Conditional Tags
testBParamCompoundConstraint

Test inequality-constrained hypothesis for two or more parameters based on iterations of MCMC chains
extractValue

Extract values from Mplus output An internal function used by extractSummaries_1file to extract parameters from the output file using regular expressions.
extractModelParameters

Extract model parameters from MODEL RESULTS section.
extractModelSummaries

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

Extract a multiline section from Mplus output
l_getSavedata_readRawFile

Internal function to load the draws from the Bayesian model posterior distribution
extractTech4

Extract Technical 4 matrix from Mplus
getInitTags

Get Initial Tags
lookupValue

Lookup values
extractTech9

Extract Technical 9 matrix from Mplus
parseTags

Parses tags in the body section
extractModIndices_1file

Extract Modification Indices for One File
print.MplusRstructure

Print an Mplus Residual Structure object
rmVarWarnings

Remove variable name length warnings from Mplus output file
extractFreeFile

Extract free file output
testBParamConstraint

Test inequality-constrained hypothesis for two parameters based on iterations of MCMC chains
extractAuxE_1file

Extract Auxillary
l_getSavedata_Bparams

Internal function to load the draws from the Bayesian model posterior distribution
graphModel

Create a graphic model from Mplus
updateCurrentValues

Updates current values
classifyTags

Classifies Tags
clipString

Clip String
extractClassCounts

Extract Latent Class Counts
extractParameters_1chunk

Extract Parameters for One Chunk
getSavedata_Data

Load an analysis dataset from the SAVEDATA command into an R data.frame
extractTech7

Extract Technical 7 from Mplus
coef.mplus.model

Return coefficients for an mplus.model object
extractTech12

Extract Technical 12 from Mplus
extractAux

Extract Auxiliary condition means and comparisons.
extract

Extract function to make Mplus output work with the texreg package
unlabeledMatrixExtract

Reconstruct matrix from unlabeled multi-line text output
createTable

Create tables