Learn R Programming

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

MplusAutomation (version 0.6-2)

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

5,234

Version

0.6-2

License

LGPL-3

Maintainer

Michael Hallquist

Last Published

October 24th, 2013

Functions in MplusAutomation (0.6-2)

extractTech9

Extract Technical 9 matrix from Mplus
extractValue

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

Lookup the matrix element for a give parameter number
LatexSummaryTable

Display summary table of Mplus model statistics in separate window
extractTech4

Extract Technical 4 matrix from Mplus
processInit

Process the Init Section
divideIntoFields

Divide text into fields
print.MplusRstructure

Print an Mplus Residual Structure object
extractModIndices

Extract model modification indices.
HTMLSummaryTable

Create an HTML file containing a summary table of Mplus model statistics
createVarSyntax

Create Mplus syntax for variable names
paramExtract

Extract parameters from a data frame of Mplus estimates
getInitTags

Get Initial Tags
replaceInitTags

Replace Init Tags
extractInput_1file

Extract and parse Mplus input file
extractModelParameters

Extract model parameters from MODEL RESULTS section.
getSavedata_Data

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

Automating Mplus Model Estimation and Interpretation
extractFacScoreStats

Extract Factor Score Statistics
rmVarWarnings

Remove variable name length warnings from Mplus output file
mplusModeler

Create, run, and read Mplus models.
extractClassCounts

Extract Latent Class Counts
classifyTags

Classifies Tags
extractTech7

Extract Technical 7 from Mplus
extractSummaries_1plan

Worker function used in extractSummaries_1section
addHeaderToSavedata

Add header to saved data
l_getSavedata_readRawFile

Internal function to load the draws from the Bayesian model posterior distribution
plot.mplusObject

Plot coefficients for an mplusObject
coef.mplusObject

Return coefficients for an mplusObject
mplusObject

Create an Mplus model object
extractParameters_1file

Extract Parameters for One File
finalizeInitCollection

Finalize Init Collection
extractModelSummaries

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

Run Mplus Models
processConditionalTags

Process Conditional Tags
graphModel

Create a graphic model from Mplus
readModels

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

Extract Technical 12 from Mplus
summary.mplusObject

Summarize an mplusObject
l_getSavedata_Fileinfo

local function that does the work of getSaveData_Fileinfo
extractTech3

Extract Technical 3 matrix from Mplus
getSavedata_Bparams

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

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

Prepare Mplus Data Matrix
extractResiduals

Extract residual matrices
testBParamCompoundConstraint

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

Update an Mplus model object
lookupSimpleTags

Simple tag lookup
lookupValue

Lookup values
l_getSavedata_Bparams

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

Display summary table of Mplus model statistics in separate window
compareModels

Compare the output of two Mplus models
splitDFByRow

Split a data frame into a list by rows
subsetModelList

Subset a list of Mplus model results
parseMplus

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

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

Create Mplus code for various residual covariance structures.
extractModIndices_1file

Extract Modification Indices for One File
runModels_Interactive

Run Mplus Models Using Graphical Interface
matrixExtract

Reconstruct matrix from multi-line text output
getSavedata_Fileinfo

Read Variable Names, Formats, and Widths from data generated by the SAVEDATA Command
unlabeledMatrixExtract

Reconstruct matrix from unlabeled multi-line text output
evaluateConditional

Evaluate Conditional
cd

Change directory
updateCurrentValues

Updates current values
clipString

Clip String
createModels

Create Mplus Input Files from Template
extractFreeFile

Extract free file output
connectNodes

Connect two nodes
extractParameters_1section

Extract Parameters for One Section
extractWarningsErrors_1file

Extract warnings and errors from 1 mplus file
extractTech10

Extract Technical 10 matrix from Mplus
getMultilineSection

Extract a multiline section from Mplus output
extractSummaries_1section

Extract summary information for one section from Mplus output
parseTags

Parses tags in the body section
extractAux

Extract Auxiliary condition means and comparisons.
addNode

Add a node to a GRAPHVIZ model
extractTech1

Extract Technical 1 matrix from Mplus
extractSummaries_1file

Extract the summaries from one file
mplus.traceplot

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

Recursive replace
createSyntax

Create the Mplus input text for an mplusObject
extractParameters_1chunk

Extract Parameters for One Chunk
replaceBodyTags

Replace Body Tags