Fit multigroup model for evaluating a candidate split
fitSubmodels(
model,
subset1,
subset2,
control,
invariance = NULL,
return.models = FALSE
)
A model specification that is used as template for each of the two groups
Dataset for the first group model
Dataset for the second group model
a semtree.control
object
fit models with invariant parameters if given. NULL otherwise (default).
boolean. Return the fitted models returns NA if fit fails