ses.comdist2 | R Documentation |
Standardized effect size of MPD (mean pairwise distance) separating taxa in two communities, a measure of phylogenetic beta diversity
ses.comdist2( samp, dis, method = "quasiswap", fixedmar = "both", shuffle = "both", strata = NULL, mtype = "count", burnin = 0, thin = 1, abundance.weighted = FALSE, runs = 999, cores = 1 )
samp |
Community data matrix with samples as rows |
dis |
Distance matrix (generally a phylogenetic distance matrix) |
method |
Character for method used for the swap algorithm ("swap", "tswap", "quasiswap", "backtrack"). If NULL no swap algorithm is applied (uses permatfull from vegan). If mtype="count" the "quasiswap", "swap", "swsh" and "abuswap" methods are available (see details). |
fixedmar |
Character, stating which of the row/column sums should be preserved ("none", "rows", "columns", "both"). |
shuffle |
Character, indicating whether individuals ("ind"), samples ("samp") or both ("both") should be shuffled, see details. |
strata |
Numeric vector or factor with length same as nrow(m) for grouping rows within strata for restricted permutations. Unique values or levels are used. |
mtype |
Matrix data type, either "count" for count data, or "prab" for presence-absence type incidence data. |
burnin |
Number of null communities discarded before proper analysis in sequential ("swap", "tswap") methods. |
thin |
Number of discarded permuted matrices between two evaluations in sequential ("swap", "tswap") methods. |
abundance.weighted |
Should mean nearest taxon distances for each species be weighted by species abundance? (default = FALSE) |
runs |
Number of randomizations |
cores |
Number of cores to use for parallel computing |
See permat (vegan) for detailed options
A list of results:
ntaxa - Number of taxa in community
comdist.obs - Observed mpd between communities
comdist.rand.mean - Mean mpd between null communities
comdist.rand.sd - Standard deviation of mpd between null communities
comdist.obs.rank - Rank of observed mpd vs. null mpd
comdist.obs.z - Standardized effect size of mpd vs. null mpd (= (comdist.obs - comdist.rand.mean) / comdist.rand.sd, equivalent to -betaNRI)
comdist.obs.p - P-value (quantile) of observed mpd vs. null communities (= comdist.obs.rank / runs + 1)
runs - Number of randomizations
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.