R/fitSubmodels.R
fitSubmodels.RdFit multigroup model for evaluating a candidate split. This function has the fundamental logic for fitting two-group models in different variants
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