BIT.Simulation: Binomial Tree Simulation

Description Usage Arguments Details Value Author(s) See Also

Description

Function to do simulation with multinomial distribution based on the tree structure.

Usage

1
BIT.Sim(p, seed = 2, N, tree, prob1, prob2)

Arguments

p

OTU numbers

seed

random seeds

N

sample size

tree

tree structure with phylo types

prob1, prob2

the probability of each branch along the tree which both is one vector with length of the branches

Details

You can random set the probability of the branches, finally use function Prob.mult() to see which OTU on the leafs is differential one.

Value

Return one count matrix of the OTU and internal nodes.

Author(s)

Chao ZHOU

See Also

Prob.mult


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