popsize {phybase}R Documentation

Population size of the most recent common ancestor of two nodes

Description

This function computes the population size of the most recent common ancestor of two nodes.

Usage

popsize(inode, jnode, nodematrix)

Arguments

inode the first node, it could be an internode.
jnode the second node, it could be an internode.
nodematrix the tree node matrix

Value

The function returns the population size of the most recent common ancestor of inode and jnode.

Author(s)

Liang Liu lliu@oeb.harvard.edu

See Also

coaltime

Examples

treestr<-"((((H:0.00402,C:0.00402#0.035):0.00304,G:0.00706):0.00929,O:0.01635):0.1,W:0.11635);"
nodematrix<-read.tree.nodes(treestr)$nodes
popsize(1,2,nodematrix)
#[1] -9   ##this tree does not have values for population size.

popsize(1,1,nodematrix)
#[1] 0.035       ##the population size for the species C is 0.035

[Package phybase version 1.1 Index]