View source: R/extractModIndices.R
extractModIndices | R Documentation |
Extracts the model modification indices from the MODEL MODIFICATION INDICES section of one
or more Mplus output files. If the 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 typically include the pairwise relationships between variables to be freed,
the change in model chi-square (M.I.), and the expected parameter change (E.P.C.).
extractModIndices(target = getwd(), recursive = FALSE, filefilter)
target |
the directory containing Mplus output files (.out) to parse OR the single output file to be parsed. May be a full path, relative path, or a filename within the working directory. Defaults to the current working directory. Example: “C:/Users/Michael/Mplus Runs” |
recursive |
optional. If |
filefilter |
a Perl regular expression (PCRE-compatible)
specifying particular output files to be parsed within |
If target
is a single file, a data.frame
containing modification results for the target output file will be
returned. If target
is a directory, a list will be returned,
where each element contains a data.frame of the modification indices
for a single file, and the top-level elements are named after the
corresponding output file name. The basic data.frame
containing
the MODEL MODIFICATION INDICES section of outfile
. Variables include
modV1 |
The first variable in the pair to be freed according to the M.I. |
operator |
The suggested relationship between |
modV2 |
The first variable in the pair to be freed according to the M.I. |
MI |
The decrease in model chi-square if the specified relationship is freely estimated |
EPC |
The expected parameter estimate between |
Std_EPC |
The EPC value standardized using the variances of the continuous latent variables. |
StdYX_EPC |
The EPC value standardized using the variances of the continuous latent variables as well as the variances of the background and/or outcome variables. |
Michael Hallquist
readModels
, extractModelSummaries
, extractModelParameters
## Not run:
ex3.14 <- extractModIndices(
"C:/Program Files/Mplus/Mplus Examples/User's Guide Examples/ex3.14.out")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.