compareModels
function compares the output of
two Mplus files and prints similarities and differences
in the model summary statistics and parameter estimates.
Options are provided for filtering out fixed parameters
and nonsignificant parameters. When requested,
compareModels
will compute the chi-square
difference test for nested models (does not apply to
MLMV, WLSM, and WLSMV estimators, where DIFFTEST in Mplus
is needed). Model outputs to be compared can be full
summaries and parameters (generated by
readModels
), summary statistics only
(extractModelSummaries
), or parameters only
(extractModelParameters
).compareModels(m1, m2, show = "all",
equalityMargin = c(param = 1e-04, pvalue = 1e-04),
sort = "none", showFixed = FALSE, showNS = TRUE,
diffTest = FALSE)
readModels
, extractModelSummaries
, or
extractModelParameters
.FALSE
.TRUE
or FALSE
,
or a numeric value (e.g., .10) that defines what p-value
is filtered as non-significant.show
parameter can be one or more of the
following, which can be passed as a vector, such as
c("equal", "pdiff").[object Object]
The sort
parameter determines the order in which
parameter estimates are displayed. The following options
are available:
[object Object]