Functions for phylogenetically based statistical analyses