popsize: Population size of the most recent common ancestor of two...

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

1
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@uga.edu

See Also

coaltime

Examples

1
2
3
4
5
6
7
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

bomeara/phybase documentation built on May 12, 2019, 11:35 p.m.