Analysis of trait clustering on a phylogeny
Source:R/asr_cluster_analysis.R
asr_cluster_analysis.Rd
This function calculates the clustering statistics (e.g., number of singletons, clusters, and no features). Alongside the frequency of these events, the size of resistance and revertant clusters are reported. Two additional statistsics are employed: 1. Phylogenetic frequency: No. clusters + singletons / total opportunities (i.e., phylogenetic events + tips without the trait) 2. Clustering frequency: No. clusters / total phylogenetic events (i.e., singleton events + clusters)