Prob.mult: Probability of the leaves

Description Usage Arguments Details Value Note Author(s)

Description

Given the probability on each branch, calculate the probability on the leaves along the tree branch, and then we can calculate the differential leaves.

Usage

1
Prob.mult(p, tree, prob)

Arguments

p

OTU numbers

tree

tree structure, object of phylo type

prob

probability on the branches, a vector with length of branches

Details

On the data simulation, after you can set the probability along the branch, you need judge the probability on the leaves, then you can judge which one is differntial.

Value

Return one vector of the leaves probability

Note

Sum of the results must to 1

Author(s)

Chao ZHOU


ZRChao/LRTT documentation built on May 17, 2019, 6:36 p.m.