fitSubmodels {semtree}R Documentation

Fit multigroup model for evaluating a candidate split

Description

Fit multigroup model for evaluating a candidate split

Usage

fitSubmodels(
  model,
  subset1,
  subset2,
  control,
  invariance = NULL,
  return.models = FALSE
)

Arguments

model

A model specification that is used as template for each of the two groups

subset1

Dataset for the first group model

subset2

Dataset for the second group model

control

a semtree.control object

invariance

fit models with invariant parameters if given. NULL otherwise (default).

return.models

boolean. Return the fitted models returns NA if fit fails


[Package semtree version 0.9.20 Index]