Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

replicateModelBy

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)


ifaTools

Toolkit for Item Factor Analysis with 'OpenMx'

v0.22
AGPL (>= 3)
Authors
Joshua N. Pritikin [cre, aut]
Initial release
2020-09-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.