as.MixedGaussian {PCMBase} | R Documentation |
Convert a GaussianPCM
model object to a MixedGaussian
model object
Description
Convert a GaussianPCM
model object to a MixedGaussian
model object
Usage
as.MixedGaussian(o, modelTypes = NULL)
Arguments
o |
an R object: either a |
modelTypes |
NULL (the default) or a (possibly named) character string
vector. Each such string denotes a mixed Gaussian regime model class, e.g.
the result of calling |
Value
a MixedGaussian
object.
Examples
mg <- as.MixedGaussian(PCMBaseTestObjects$model.ab.123.bSigmae_x)
stopifnot(
PCMLik(
X = PCMBaseTestObjects$traits.ab.123,
PCMBaseTestObjects$tree.ab,
PCMBaseTestObjects$model.ab.123.bSigmae_x) ==
PCMLik(
X = PCMBaseTestObjects$traits.ab.123,
PCMBaseTestObjects$tree.ab,
mg))
[Package PCMBase version 1.2.14 Index]