Learn R Programming

TreeSim (version 2.4)

sim.genetree: sim.genetree: Simulating coalescent gene trees.

Description

sim.genetree simulates a gene tree assuming the coalescent with coalescent rate being 1. The method returns summary statistics of the gene tree.

Usage

sim.genetree(n, numbsim)

Arguments

n

Number of extant sampled tips.

numbsim

Number of trees to simulate.

Value

statistics

For each simulated gene tree the following statistics are returned: "Colless","s","Sackin","cherries".

References

T. Stadler, J. Degnan, N. Rosenberg. Manuscript.

Examples

Run this code
# NOT RUN {
n<-10
numbsim<-2

sim.genetree(n, numbsim)

# }

Run the code above in your browser using DataLab