| epcEquivFit | R Documentation |
Evaluates model fit from an equivalence-testing perspective by aggregating local EPC-based diagnostics into a global, fit-style assessment. The procedure combines modification indices (MI), expected parameter changes (EPC), statistical power, and confidence intervals relative to a smallest effect size of interest (SESOI).
epcEquivFit(lavaanObj, stdLoad = 0.4, cor = 0.1, corLatent = NULL,
corResidual = NULL, stdBeta = 0.1, stdIntcept = 0.2, stdSesoi = NULL,
sesoi = NULL, cilevel = 0.9, mialpha = 0.05, mipower = 0.8,
adjust.method = "none", ...)
## S3 method for class 'epcequivfit.data.frame'
summary(object, ..., top = 5, ssv = FALSE)
lavaanObj |
A fitted |
stdLoad |
Standardized factor loading defining the SESOI for loading misspecifications. Default is 0.4. |
cor |
Default standardized correlation defining the SESOI for covariance misspecifications. Used for both latent and residual covariances unless overridden. |
corLatent |
Standardized latent factor correlation defining the
SESOI for latent covariance misspecifications. If |
corResidual |
Standardized residual correlation defining the
SESOI for residual covariance misspecifications. If |
stdBeta |
Standardized regression coefficient defining the SESOI for structural misspecifications. Default is 0.1. |
stdIntcept |
Standardized intercept (Cohen's d) defining the SESOI for intercept misspecifications. Default is 0.2. |
stdSesoi |
Optional vector of standardized SESOI values. If provided, overrides operator-specific SESOI definitions. |
sesoi |
Optional vector of unstandardized SESOI values. If
provided, overrides |
cilevel |
Confidence level for EPC confidence intervals used in CI-based equivalence testing. |
mialpha |
Significance level used for evaluating modification indices in the power-based decision rule (Method 1). Default is 0.05. |
mipower |
Desired statistical power for detecting a misspecification of the specified SESOI in the power-based decision rule. Default is 0.80. |
adjust.method |
Multiplicity adjustment method applied to both
modification index tests and EPC confidence intervals. Currently
supported options are |
... |
Additional arguments passed to
|
object |
An object returned by |
top |
Number of top-ranked EPCs to display. |
ssv |
Logical; whether to include power-based diagnostics. |
Two complementary local decision rules are implemented:
Method 1 (Power-based; Saris, Satorra, & van der Veld, 2009). Modification indices, statistical power, and EPC magnitude are jointly evaluated (the J-rule) to classify fixed parameters as misspecified, not misspecified, or inconclusive.
Method 2 (CI-based equivalence testing). Confidence intervals of EPCs are compared against a trivial misspecification region defined by the SESOI to determine whether fixed parameters are substantially misspecified, trivially misspecified, underpowered, or inconclusive.
The resulting local classifications are returned in a single data frame and can be summarized to yield a global equivalence-style fit evaluation.
This function provides a local-to-global equivalence-based alternative to traditional exact-fit evaluation. It is designed to assess whether fixed parameters are substantively misspecified relative to a SESOI, rather than whether a model fits exactly.
When adjust.method = "bonferroni", familywise error control
is applied across all evaluated fixed parameters by adjusting the
MI significance threshold and widening EPC confidence intervals.
Models with categorical indicators or unsupported constraints may not be fully supported.
A data frame with one row per fixed parameter, containing:
Parameter identifiers: lhs, op, rhs, and group.
Modification index (mi) and expected parameter change estimates
(epc).
Unstandardized and standardized smallest effect size of interest values
(sesoi, std.sesoi).
Power-based decision (decision.pow) and related diagnostics, including
whether the modification index is statistically significant
(significant.mi) and whether the misfit at the SESOI has power greater
than 0.80 (high.power). Decision labels are:
M = Substantially Misspecified,
I = Inconclusive,
NM = Trivially Misspecified,
EPC:M = Substantially Misspecified based on EPC information,
EPC:NM = Trivially Misspecified based on EPC information.
EPC-related statistics, including the standard error of the EPC
(se.epc), confidence interval bounds for the EPC
(lower.epc, upper.epc), and confidence interval bounds for the
standardized EPC (lower.std.epc, upper.std.epc).
Confidence-interval–based equivalence decision (decision.ci), with
labels:
M = Substantially Misspecified (EPC exceeds the SESOI),
I = Inconclusive,
NM = Trivially Misspecified,
U = Underpowered (CI too wide to evaluate equivalence relative to the SESOI).
Saris, W. E., Satorra, A., & van der Veld, W. M. (2009). Testing structural equation models or detection of misspecifications? Structural Equation Modeling, 16(4), 561–582.
epcEquivCheck
library(lavaan)
one.model <- ' onefactor =~ x1 + x2 + x3 + x4 + x5 + x6 + x7 + x8 + x9 '
fit <- cfa(one.model, data = HolzingerSwineford1939)
out <- epcEquivFit(fit)
out
summary(out)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.