| PCMMapModelTypesToRegimes {PCMBase} | R Documentation |
Integer vector giving the model type index for each regime
Description
Integer vector giving the model type index for each regime
Usage
PCMMapModelTypesToRegimes(model, tree, ...)
Arguments
model |
a PCM model |
tree |
a phylo object with an edge.part member |
... |
additional parameters passed to methods |
Details
This is a generic S3 method. The default implementation for the basic
class PCM returns a vector of 1's, because it assumes that a single model type
is associated with each regime. The implementation for mixed Gaussian models
returns the mapping attribute of the MixedGaussian object reordered to
correspond to PCMTreeGetPartNames(tree).
Value
an integer vector with elements corresponding to the elements in
PCMTreeGetPartNames(tree)
[Package PCMBase version 1.2.14 Index]