macrocaic(formula, data, phy, names.col, macroMethod = "RRD", stand.contr = TRUE, robust=Inf, ref.var = NULL, node.depth = NULL, macroMinSize = 3, equal.branch.length = FALSE)data that contains the tip labels from phy.$$RRD = \ln\left(\frac{N_1}{N_2}\right)$$ {RRD = ln(N_1/N_2)}
$$PDI = \left(\frac{N_1}{N_1+N_2}\right)-0.5$$ {PDI = (N_1/(N_1 + N_2))-0.5}
The values $N_1$ and $N_2$ are the species richness of the two daughter nodes and $N_1$ is the species richness of the clade with the larger value of the reference variable. Species richness contrasts are not calculated at polytomies. Nodal values for species richness are calculated as the sum of the richness of the daughter nodes.
caic-class for 'caic' object structure and methods.data(IsaacEtAl)
primates <- comparative.data(primates.tree, primates.data, binomial, na.omit=FALSE)
primatesBodySize <- macrocaic(species.rich ~ body.mass, data=primates)
summary(primatesBodySize)Run the code above in your browser using DataLab