Convert from phylo to the A matrix used in trac. Note this is similar to the A used in rare, but with the column of all ones (for the root) removed

phylo_to_A(phy)

Arguments

phy

phylo object from the ape package