target is a directory, all .out
files therein will be parsed and a single list will be
returned, where the list elements are named by the output
file name. Returned parameters often include the
parameter estimate, std. err, param/s.e., and two-tailed
p-value.extractModelParameters(target = getwd(),
recursive = FALSE, filefilter, dropDimensions = FALSE,
resultType)TRUE, parse all
models nested in subdirectories within target.
Defaults to FALSE.directory. See regex or
TRUE, then if only one output section
(usually unstandardized) is present for all files in the
parsed list, then eliminate the second-level list (which
contains elements for each output sectionresultType specified the
results section to extract. Iftarget is a single file, a list containing
unstandardized and standardized results will be returned.
If all standardized solutions are available, the list
element will be named: unstandardized,
stdyx.standardized, stdy.standardized, and
std.standardized. If confidence intervals are
output using OUTPUT:CINTERVAL, then a list element named
ci.unstandardized will be included. Each of these
list elements is a data.frame containing relevant
model parameters. If target is a directory, a list will be returned,
where each element contains the results for a single
file, and the top-level elements are named after the
corresponding output file name. Each element within this
list is itself a list, with elements as in the single
file case above.
The core data.frame for each MODEL RESULTS section
typically has the following structure:
paramHeader). Example: "ITEM1"est/se, representing z-test/t-test in large
samplesest_se quotient.data.frame will contain a
different set of variables, including some of the above,
as well aspval column for Bayesian output
represents a one-tailed estimate. In the case of output from a Monte Carlo study
(MONTECARLO: and MODEL POPULATION:), the
data.frame will contain a different set of
variables, including some of the above, as well as
ci.unstandardized will contain a different set of
variables, including some of the above, as well asLatentClass, will be
included, specifying the latent class number. Also, the
Categorical Latent Variables section will be included as
LatentClass "Categorical.Latent.Variables." If the model contains multiple groups, Group will
be included.
If the model contains two-level output (between/within),
BetweenWithin will be included.
extractModelSummariesex3.14 <- extractModelParameters(
"C:/Program Files/Mplus/Mplus Examples/User's Guide Examples/ex3.14.out")Run the code above in your browser using DataLab