getConstraintTests {dySEM} | R Documentation |
A function that performs a score test for relaxing each invariance equality constraint between partners in a given dyadic SEM model.
Description
A function that performs a score test for relaxing each invariance equality constraint between partners in a given dyadic SEM model.
Usage
getConstraintTests(constrainFit, filterSig = FALSE)
Arguments
constrainFit |
fitted lavaan model with dyadic invariance equality constraints |
filterSig |
logical indicating whether to filter for significant constraints (default is FALSE) |
Value
a data frame with rows of equality constraints (now with readable param labels) and test statistic, df, and p for whether constraint worsens model fit
Examples
dvn <- scrapeVarCross(dat = commitmentM, x_order = "sip", x_stem = "sat.g",
x_delim2="_", distinguish_1="f", distinguish_2="m")
sat.resids.script <- scriptCFA(dvn, lvname = "Sat",
constr_dy_meas = c("loadings", "intercepts", "residuals"),
constr_dy_struct = "none")
sat.resids.mod <- lavaan::cfa(sat.resids.script, data = commitmentM, std.lv = FALSE,
auto.fix.first= FALSE, meanstructure = TRUE)
getConstraintTests(sat.resids.mod)
[Package dySEM version 1.0.0 Index]