mxFitFunctionMultigroup {OpenMx} | R Documentation |
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
mxFitFunctionMultigroup(groups, ..., verbose = 0L)
groups |
vector of fit function names |
... |
Not used. Forces remaining arguments to be specified by name. |
verbose |
the level of debugging output |
require("OpenMx") mxFitFunctionMultigroup(c("model1", "model2")) # names of sub-models to be jointly optimised