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)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
Matrix or data frame containing data for the reference group (observations in rows, variables in columns).
Matrix or data frame containing data for the test group (observations in rows, variables in columns).
number of bootstrap replicates
If you use this function, in addition to this package, please cite Navarro (2003)
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.
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.
disparity_resample,
disparity_test