PCMMapModelTypesToRegimes.Rd
Integer vector giving the model type index for each regime
PCMMapModelTypesToRegimes(model, tree, ...)
model | a PCM model |
---|---|
tree | a phylo object with an edge.part member |
... | additional parameters passed to methods |
an integer vector with elements corresponding to the elements in
PCMTreeGetPartNames(tree)
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)
.