BTailTest | R Documentation |
Performs the BTailTest, in the same spirit as implemented in the Matlab package MDA (Navarro 2003) and used in various empirical papers (e.g., Fruciano et al. 2014, 2016).
BTailTest(Reference, Test, boot = 1000)
Reference |
Matrix or data frame containing data for the reference group (observations in rows, variables in columns). |
Test |
Matrix or data frame containing data for the test group (observations in rows, variables in columns). |
boot |
number of bootstrap replicates |
This is a test of the difference in disparity between two groups: a reference and a test group. The function proceeds by computing a bootstrapped distribution of the test statistics (multivariate variance and mean pairwise Euclidean distances in this implementation) in the reference sample and then comparing the statistics observed in the test sample to this distribution to obtain p-values.
The function outputs a list with the following elements:
Estimates of both multivariate variance and mean pairwise Euclidean distance for each of the bootstrapped samples
p values obtained for the test
If you use this function, in addition to this package, please cite Navarro (2003)
Navarro N. 2003. MDA: a MATLAB-based program for morphospace-disparity analysis. Computers & Geosciences 29:655-664.
Fruciano C, Franchini P, Raffini F, Fan S, Meyer A. 2016. Are sympatrically speciating Midas cichlid fish special? Patterns of morphological and genetic variation in the closely related species Archocentrus centrarchus. Ecology and Evolution 6:4102-4114.
Fruciano C, Pappalardo AM, Tigano C, Ferrito V. 2014. Phylogeographical relationships of Sicilian brown trout and the effects of genetic introgression on morphospace occupation. Biological Journal of the Linnean Society 112:387-398.
rarefied_convex_hull
, rarefied_disparity
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.