rerootingMethod(tree, x, model=c("ER","SYM"), ...)
"phylo"
.x
is a vector, then names(x)
should be the species names. If x
is a matrix of prior probabilities, then rownames should be species names, column names should be states for the discrete character, and rows of the matrix should sum to 1.0.model=c("ER","SYM")
recommended.tips
. If tips=TRUE
, then the function will also compute the empirical Bayes posterior probabilities of the tips following Yang (2006).fitMk
internally. fitMk
uses some code adapted from ace
in the ape package.
Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.
Yang, Z., Kumar, S., Nei, M. (1995) A new method of inference of ancestral nucleotide and amino acid sequences. Genetics, 141, 1641-1650.
ace
, fitMk
, make.simmap