Learn R Programming

picante (version 0.6-1)

ses.mnnd: Standardized effect size of MNND

Description

Standardized effect size of mean nearest neighbour distances in communities. When used with a phylogenetic distance matrix, equivalent to -1 times the Nearest Taxon Index (NTI).

Usage

ses.mnnd(samp, dis, null.model = c("taxa.labels","sample.pool", "phylogeny.pool",
            "independentswap", "trialswap"), runs = 999, iterations = 1000)

Arguments

samp
Community data matrix
dis
Distance matrix (generally a phylogenetic distance matrix)
null.model
Null model to use (see Details section for description)
runs
Number of randomizations
iterations
Number of iterations to use for each randomization (for independent swap and trial null models)

Value

  • A data frame of results for each community
  • ntaxaNumber of taxa in community
  • mnnd.obsObserved MNND in community
  • mnnd.rand.meanMean MNND in null communities
  • mnnd.rand.sdStandard deviation of MNND in null communities
  • mnnd.obs.rankRank of observed MNND vs. null communities
  • mnnd.obs.zStandardized effect size of MNND vs. null communities (= (mnnd.obs - mnnd.rand.mean) / mnnd.rand.sd, equivalent to -NTI)
  • mnnd.obs.pP-value (quantile) of observed MNND vs. null communities (= mnnd.obs.rank / runs + 1)
  • runsNumber of randomizations

Details

Currently implemented null models (arguments to null.model): [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

References

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/.

See Also

mnnd, randomizeSample

Examples

Run this code
data(phylocom)
ses.mnnd(phylocom$sample, cophenetic(phylocom$phylo),null.model="taxa.labels")

Run the code above in your browser using DataLab