contrasts_correlations: All pairwise correlations

View source: R/runanalysis.R

contrasts_correlationsR Documentation

All pairwise correlations

Description

Use independent contrasts on each pair of traits. If a trait is missing for a taxon, drop that taxon for all analyses with that trait but not others. It runs cor.test on the positivized contrasts and returns the correlation, lower, and upper 95

Usage

contrasts_correlations(phy, traits)

Arguments

phy

A phylo object

traits

A data.frame of traits with first column as species

Value

A list with three objects: the correlations, lower, and upper.


bomeara/chapter2 documentation built on July 27, 2024, 10:35 p.m.