phylo.d(data, phy, names.col, binvar, permut = 1000)
## S3 method for class 'phylo.d':
print(x, ...)
## S3 method for class 'phylo.d':
summary(object, ...)data holding the binary variable of interest.This function calculates the observed D for a binary trait on a tree and compares this to the value of D found using an equal number of simulations under each of two models: [object Object],[object Object] The value of D depends on phylogeny size - more sister clades yield higher sums - and so the means of the two sets of simulated data are used as calibrations to scale both observed and simulated values of D to set points of 0 (as phylogenetically conserved as expected under a Brownian threshold model) and 1 (random). The value of D can be both smaller than 0 (highly conserved) and greater than 1 (overdispersed) and the distributions of scaled D from the simulations are used to assess the significance of the observed scaled D.
data(BritishBirds)
BritishBirds <- comparative.data(BritishBirds.tree, BritishBirds.data, binomial)
redPhyloD <- phylo.d(BritishBirds, binvar=Red_list)
print(redPhyloD)Run the code above in your browser using DataLab