Standardized effect size of phylogenetic diversity (Faith's PD) in communities.
ses.pd(samp, tree, null.model = c("taxa.labels", "richness", "frequency",
"sample.pool", "phylogeny.pool", "independentswap", "trialswap"),
runs = 999, iterations = 1000, include.root=TRUE)
Community data matrix
Phylogeny (phylo object)
Null model to use (see Details section for description)
Number of randomizations
Number of iterations to use for each randomization (for independent swap and trial null models)
Include distance to root node in calculation of PD (see documentation in pd
function
A data frame of results for each community
Number of taxa in community
Observed PD in community
Mean PD in null communities
Standard deviation of PD in null communities
Rank of observed PD vs. null communities
Standardized effect size of PD vs. null communities (= (pd.obs - pd.rand.mean) / pd.rand.sd)
P-value (quantile) of observed PD vs. null communities (= mpd.obs.rank / runs + 1)
Number of randomizations
Currently implemented null models (arguments to null.model):
Shuffle taxa labels across tips of phylogeny (across all taxa included in phylogeny)
Randomize community data matrix abundances within samples (maintains sample species richness)
Randomize community data matrix abundances within species (maintains species occurence frequency)
Randomize community data matrix by drawing species from pool of species occurring in at least one community (sample pool) with equal probability
Randomize community data matrix by drawing species from pool of species occurring in the phylogeny (phylogeny pool) with equal probability
Randomize community data matrix with the independent swap algorithm (Gotelli 2000) maintaining species occurrence frequency and sample species richness
Randomize community data matrix with the trial-swap algorithm (Miklos & Podani 2004) maintaining species occurrence frequency and sample species richness
Webb, C.O., Ackerly, D.D., and Kembel, S.W. 2008. Phylocom: software for the analysis of phylogenetic community structure and trait evolution. Version 4.0.1. http://www.phylodiversity.net/phylocom/.
Proches, S., Wilson, J.R.U. and Cowling, R.M. 2006. How much evolutionary history in a 10 x 10m plot? Proceedings of Royal Society of London B, Biological Sciences 273:1143-1148.
# NOT RUN {
data(phylocom)
ses.pd(phylocom$sample, phylocom$phylo, null.model="taxa.labels", runs=99)
# }
Run the code above in your browser using DataLab