treestructure.test | R Documentation |
Test the hypothesis that two clades within a tree were generated by the same coalescent process.
treestructure.test(tre, x, y, nsim = 10000)
tre |
An ape::phylo tree, must be binary and rooted |
x |
A character vector of tip labels or numeric node numbers. If numeric, can include internal node numbers. |
y |
as x, but must be disjoint with x |
nsim |
Number of simulations (larger = slower and more accurate) |
tree <- ape::read.tree( system.file('sim.nwk', package = 'treestructure') )
(struc <- trestruct( tree ))
#run the test
results <- treestructure.test(tree, x = struc$clusterSets[[1]],
y = struc$clusterSets[[2]])
print(results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.