treestructure.test: Test treestructure hypothesis

View source: R/m13.R

treestructure.testR Documentation

Test treestructure hypothesis

Description

Test the hypothesis that two clades within a tree were generated by the same coalescent process.

Usage

treestructure.test(tre, x, y, nsim = 10000)

Arguments

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)

Examples

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)

emvolz-phylodynamics/treestructure documentation built on June 11, 2025, 11:04 a.m.