Learn R Programming

metricTester (version 1.3.6)

Test Metric and Null Model Statistical Performance

Description

Explore the behavior and statistical performance of 13 pre-defined phylogenetic metrics and 11 null models, and of user-defined metrics and null models, as detailed in Miller et al. (2017) .

Copy Link

Version

Install

install.packages('metricTester')

Monthly Downloads

115

Version

1.3.6

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

December 12th, 2019

Functions in metricTester (1.3.6)

abundanceVector

Generate regional abundance vector
alphaMetricSims

Calculate alpha metrics under specified tree and community parameters
FDis

Calculate functional dispersion (FDis)
MRD

Calculate mean root distance
betaMetricsNnulls

Parallelized function that calculates beta metrics on randomized matrices
betaMetricSims

Calculate beta metrics under specified tree and community parameters
calcField

Calculate phylogenetic and trait fields
betaErrorWrapper

Read in and calculate type I and II error rates of a set of beta metric tests
betaLinker

Run spatial simulations, null and beta metric calculations
betaErrorChecker

Wrapper for summarizing error rates of beta metric randomizations
calcMetrics

Calculate phylogenetic community structure metrics
arenaTest

Calculate SES of each observed metric + null model combination
betaMultiLinker

Run multiple simulations and calculations to test beta metric + null performance
calcBetaMetrics

Calculate phylogenetic community structure beta metrics
distMRCA

Calculate plot-level distances to most recent common ancestors
centers

Calculate weighted centroids
errorChecker

Wrapper for summarizing randomizations and testing significance of observed metrics
checkCDM

Confirm that a CDM will run
checkMetrics

Confirm that the metric functions are in suitable format
checkSimulations

Confirm that the spatial simulation functions are in suitable format
linker

Run spatial simulations, null and metric calculations to test metric + null performance
checkBetaMetrics

Confirm that the metric functions are in suitable format
checkNulls

Confirm that the null model functions are in suitable format
dispersalNull

Randomize community data matrix with dispersal null model
defineSimulations

Output all spatial simulations as a list of named functions
competitionArena

Simulate competitive exclusion over multiple generations
evolveTraits

Evolve two traits up a tree
expectations

Generate expectations for null+metric combinations
makeCDM

Wrapper for creating a CDM from a spatial simulation result
defineBetaMetrics

Output all beta metrics as a list of named functions
observedBetaMetrics

Wrapper for prepping and calculating observed beta metrics
metricsNnulls

Parallelized function that calculates metrics on randomized matrices
modifiedMPD

Calculate different versions of abundance-weighted MPD
killSomeBig

Remove most closely related individuals for large arenas
oldRegionalNull

Randomize community data matrix with regional null model
defineNulls

Output all null models as a list of named functions
metricPerformance

Summarize metric performance of a series of summarized simulation results
defineMetrics

Output all metrics as a list of named functions
makeRoadMap

Create a road map for use in FDis-related functions
phyloField

Calculate a species' phylogenetic field
newRegionalNull

Randomize community data matrix with second-gen regional null model
runSimulations

Run defined spatial simulations
prepFieldData

Prep data to to calculate phylogenetic fields
nullPerformance

Summarize null model performance of a series of summarized simulation results
lengthNonZeros

Calculate the species richness of a vector from a CDM
sesField

Calculate a species' standardized trait field
prepNulls

Prep data for null randomizations
prepSimulations

Prep data for spatial simulations
plotContents

Identify individuals contained within a plot
filteringArena

Simulate a community assembled according to habitat filtering
settleSome

Randomly settle individuals in a spatial arena
plotPlotter

Plot simulated plots in arena
plotPlacer

Randomly place plots in arena
observedMetrics

Wrapper for prepping and calculating observed metrics
plotOverall

Overall per simulation-null-metric plot test
pscCorr

Calculate corrected PSC
simulateComm

Generate a simulated community data matrix
relativeCDM

Convert absolute abundance matrix to relative abundance
sesTraitField

Calculate a species' standardized trait field
synthComm

Create synthetic community niche space
traitField

Calculate a species' trait field
sesPhyloField

Calculate a species' standardized trait field
randomArena

Generate a random spatial arena
killSome

Remove most closely related individuals
runNulls

Randomize input CDM according to defined null models
multiCDM

Wrapper for deriving CDMs from the results of multiple spatial simulations
readIn

Read in the results of multiple metric/null/simulation tests
summaries

Return summary statistics from a data frame of randomized metric values
summCorrs

Summarize correlations among metrics over a result from a varyX function
sesIndiv

Summary statistics of SES results
multiLinker

Run multiple simulations and calculations to test metric + null performance
plotTest

Calculate if single, observed metrics deviate beyond expectations
prepData

Prep data to test phylogenetic community structure metrics
reduceRandomizations

Reduce randomized results to a manageable list of dataframes
reduceResults

Reduce results from multiLinker into a manageable format
sesOverall

Overall per simulation-null-metric SES test
varLandscape

Create landscapes with varying degrees of heterogeneity
varyX

Calculate alpha or beta metrics across a set of parameters