replicateModelBy: Replicate a model for each group of data

Description Usage Arguments

View source: R/model.R

Description

The reference group is fixed to a zero mean and identity covariance matrix.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
replicateModelBy(
  tmpl,
  fullData,
  mMat,
  covMat,
  ...,
  splitCol = "population",
  refGroup = "general",
  split = TRUE,
  compressData = TRUE
)

Arguments

tmpl

an OpenMx model

fullData

the complete data including the column indicating group membership

mMat

an MxMatrix for latent means

covMat

an MxMatrix for latent covariance

...

Not used. Forces remaining arguments to be specified by name.

splitCol

the name of the column used to indicate group membership

refGroup

the name of the reference group

split

whether to split the data (defaults to TRUE)

compressData

whether to apply compressDataFrame (defaults to TRUE)


ifaTools documentation built on Jan. 20, 2022, 1:08 a.m.