Description Usage Arguments Details Notes References
View source: R/functions_mathematical.R
"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).
1 | calc_NT2(refdat, prodat)
|
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 |
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.
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/.
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.