BTailTest: BTailTest for difference in disparity/morphospace occupation

View source: R/BTailTest.R

BTailTestR Documentation

BTailTest for difference in disparity/morphospace occupation

Description

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).

Usage

BTailTest(Reference, Test, boot = 1000)

Arguments

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

Details

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.

Value

The function outputs a list with the following elements:

BootstrappedSamplesEstimates

Estimates of both multivariate variance and mean pairwise Euclidean distance for each of the bootstrapped samples

pvalues

p values obtained for the test

Citation

If you use this function, in addition to this package, please cite Navarro (2003)

References

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.

See Also

rarefied_convex_hull, rarefied_disparity


fruciano/GeometricMorphometricsMix documentation built on Jan. 31, 2024, 6:24 a.m.