Consistency | R Documentation |
Consistency()
calculates the so-called consistency and retention "indices"
for each character in a dataset, given a bifurcating tree.
Although there is not a straightforward interpretation of these indices,
they are sometimes taken as an indicator of the fit of a character to a
tree. Values correlate with the number of species sampled and the
distribution of taxa between character states, so are not strictly comparable
between characters in which these factors differ.
Consistency(dataset, tree, compress = FALSE)
dataset |
A phylogenetic data matrix of phangorn class
|
tree |
A tree of class |
compress |
Logical specifying whether to retain the compression of a
|
#TODO: Retention index not yet implemented.
Consistency()
returns a named vector specifying the
consistency index (ci
),
retention index (ri
), and rescaled consistency index (rc
).
Martin R. Smith (martin.smith@durham.ac.uk)
data(inapplicable.datasets)
dataset <- inapplicable.phyData[[4]]
Consistency(dataset, TreeTools::NJTree(dataset))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.