MixedGaussianTemplate.Rd
Create a template MixedGaussian object containing a regime for each model type
MixedGaussianTemplate(mg, modelTypes = NULL)
mg | a MixedGaussian object or an object that can be converted to such
via |
---|---|
modelTypes | a (possibly named) character string
vector. Each such string denotes a mixed Gaussian regime model class, e.g.
the result of calling |
a MixedGaussian with the same global parameter settings as for mg,
the same modelTypes as modelTypes
, and with a regime for each model type.
The function will stop with an error if mg
is not convertible to
a MixedGaussian object or if there is a mismatch between the model types in
mg
and modelTypes
.
mg <- MixedGaussianTemplate(PCMBaseTestObjects$model.ab.123.bSigmae_x) mgTemplBMOU <- MixedGaussianTemplate(PCMBaseTestObjects$model.OU.BM)