Last data update: 2014.03.03

R: Replicate a model for each group of data
replicateModelByR Documentation

Replicate a model for each group of data

Description

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

Usage

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)

Results