calc_NT2: Multivariate novelty/extrapolation NT2

Description Usage Arguments Details Notes References

View source: R/functions_mathematical.R

Description

"NT2 can range from zero up to unbounded positive values. NT2 values ranging from zero to one indicate similarity (in terms of both univariate range and multivariate combination), with values closer to zero being more similar. Values larger than one are indicative of novel combinations" (Mesgaran et al. 2014).

Usage

1
calc_NT2(refdat, prodat)

Arguments

refdat

A numerical matrix. The reference values of variables organized in columns.

prodat

A numerical matrix. The projected values. The columns must match those of refdat.

Details

Calculates the Mahalanobis distance of each observation to the environmental center of the reference set for both the reference and the projection data set and calculate the ratio between the two.

Notes

The code is adapted from Bell & Schlaepfer 2015 (available at https://github.com/bellland/SDM.Virtual.Species_Bell.Schlaepfer) which was based on a comment by Matthew Bayly made at https://pvanb.wordpress.com/2014/05/13/a-new-method-and-tool-exdet-to-evaluate-novelty-environmental-conditions/.

References

Mesgaran, M. B., R. D. Cousens, B. L. Webber, and J. Franklin. 2014. Here be dragons: a tool for quantifying novelty due to covariate range and correlation change when projecting species distribution models. Diversity and Distributions 20:1147-1159.


DrylandEcology/rSW2analysis documentation built on Nov. 8, 2021, 4:20 p.m.