View source: R/MixedGaussian.R
| as.MixedGaussian | R Documentation |
GaussianPCM model object to a MixedGaussian model objectConvert a GaussianPCM model object to a MixedGaussian model object
as.MixedGaussian(o, modelTypes = NULL)
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 |
a MixedGaussian object.
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.