dvn <- scrapeVarCross(
commitmentM,
x_order = "sip",
x_stem = "sat.g",
x_delim1 = "",
x_delim2 = "_",
distinguish_1 = "f",
distinguish_2 = "m"
)
# Quick example for CRAN checks
outputUniConstructComp(
dvn,
commitmentM,
indexes = c("df", "bic"),
missing = "listwise"
)
# \donttest{
# More comprehensive examples (slower due to FIML estimation)
outputUniConstructComp(
dvn,
commitmentM,
missing = "fiml"
)
outputUniConstructComp(
dvn,
commitmentM,
indexes = c("df", "bic"),
missing = "fiml"
)
outputUniConstructComp(
dvn,
commitmentM,
indexes = c("df", "bic"),
estimator = "ml",
missing = "fiml"
)
outputUniConstructComp(
dvn,
commitmentM,
indexes = c("df", "bic"),
missing = "fiml",
gtTab = TRUE,
writeTo = tempdir(),
fileName = "uni-construct-dyad-models"
)
# }
Run the code above in your browser using DataLab