mxFitFunctionMultigroup {OpenMx}R Documentation

Aggregate fit statistics from submodels

Description

This is fit function is used to sum the fit statistics from other fit functions, typically in submodels.

This call:

mxFitFunctionMultigroup(c("model1", "model2"))

is almost equivalent to the following pair of statements:

mxAlgebra(model1.objective + model2.objective, name="alg")

mxFitFunctionAlgebra("alg")

However, in addition to the fit statistic, mxFitFunctionMultigroup also aggregates analytic derivative calculations.

A further advantage is that this allows mxSaturatedModel compute saturated models for raw data.

Note: You can refer to the algebra generated by mxFitFunctionMultigroup as modelName.fitfunction

Usage

mxFitFunctionMultigroup(groups, ..., verbose = 0L)

Arguments

groups

vector of fit function names

...

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

verbose

the level of debugging output

Examples

require("OpenMx")
mxFitFunctionMultigroup(c("model1", "model2")) # names of sub-models to be jointly optimised

[Package OpenMx version 2.0.0-3756 Index]