View source: R/pool-modindices.R
modindices.mi | R Documentation |
Modification indices (1-df Lagrange multiplier tests) from a latent variable model fitted to multiple imputed data sets. Statistics for releasing one or more fixed or constrained parameters in model can be calculated by pooling the gradient and information matrices across imputed data sets in a method proposed by Mansolf, Jorgensen, & Enders (2020)—analogous to the "D1" Wald test proposed by Li, Meng, Raghunathan, & Rubin (1991)—or by pooling the complete-data score-test statistics across imputed data sets (i.e., "D2"; Li et al., 1991).
modindices.mi(
object,
pool.method = c("D2", "D1"),
omit.imps = c("no.conv", "no.se"),
standardized = TRUE,
cov.std = TRUE,
information = "expected",
power = FALSE,
delta = 0.1,
alpha = 0.05,
high.power = 0.75,
sort. = FALSE,
minimum.value = 0,
maximum.number = nrow(LIST),
na.remove = TRUE,
op = NULL
)
modificationIndices.mi(
object,
pool.method = c("D2", "D1"),
omit.imps = c("no.conv", "no.se"),
standardized = TRUE,
cov.std = TRUE,
information = "expected",
power = FALSE,
delta = 0.1,
alpha = 0.05,
high.power = 0.75,
sort. = FALSE,
minimum.value = 0,
maximum.number = nrow(LIST),
na.remove = TRUE,
op = NULL
)
modificationindices.mi(
object,
pool.method = c("D2", "D1"),
omit.imps = c("no.conv", "no.se"),
standardized = TRUE,
cov.std = TRUE,
information = "expected",
power = FALSE,
delta = 0.1,
alpha = 0.05,
high.power = 0.75,
sort. = FALSE,
minimum.value = 0,
maximum.number = nrow(LIST),
na.remove = TRUE,
op = NULL
)
object |
An object of class lavaan.mi |
pool.method |
|
omit.imps |
|
standardized |
|
cov.std |
|
information |
|
power |
|
delta |
The value of the effect size, as used in the post-hoc power
computation, currently using the unstandardized metric of the |
alpha |
The significance level used for deciding if the modification index is statistically significant or not. |
high.power |
If the computed power is higher than this cutoff value,
the power is considered 'high'. If not, the power is considered 'low'.
This affects the values in the |
sort. |
|
minimum.value |
|
maximum.number |
|
na.remove |
|
op |
|
A data.frame
containing modification indices and (S)EPCs.
When pool.method = "D2"
, each (S)EPC will be pooled by taking its
average across imputations. When pool.method = "D1"
, EPCs will be
calculated in the standard way using the pooled gradient and information,
and SEPCs will be calculated by standardizing the EPCs using model-implied
(residual) variances.
Terrence D. Jorgensen (University of Amsterdam; TJorgensen314@gmail.com)
Based on source code for lavaan::modindices()
by Yves Rosseel
pool.method = "D1"
method proposed by
Maxwell Mansolf (University of California, Los Angeles;
mamansolf@gmail.com)
Enders, C. K. (2010). Applied missing data analysis. New York, NY: Guilford.
Li, K.-H., Meng, X.-L., Raghunathan, T. E., & Rubin, D. B. (1991). Significance levels from repeated p-values with multiply-imputed data.Statistica Sinica, 1(1), 65–92. Retrieved from https://www.jstor.org/stable/24303994
Mansolf, M., Jorgensen, T. D., & Enders, C. K. (2020). A multiple imputation score test for model modification in structural equation models. Psychological Methods, 25(4), 393–411. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1037/met0000243")}
lavTestScore.mi()
data(HS20imps) # import a list of 20 imputed data sets
## specify CFA model from lavaan's ?cfa help page
HS.model <- '
visual =~ x1 + x2 + x3
textual =~ x4 + x5 + x6
speed =~ x7 + x8 + x9
'
fit <- cfa.mi(HS.model, data = HS20imps)
modindices.mi(fit) # default: Li et al.'s (1991) "D2" method
## Li et al.'s (1991) "D1" method,
## adapted for score tests by Mansolf et al. (2020)
modindices.mi(fit, pool.method = "D1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.