Computes island-age-corrected in-situ speciation rates
insitu_rate_by_island_age.RdModifies insitu_speciation_rate to use island formation age
as the time denominator rather than total root-to-tip path length. This
gives the rate of in-situ speciation per unit time that the island has
existed. This approach allows for comparing diversification
dynamics across islands of different geological ages.Events that predate
island formation are excluded from the count before computing rates.
Arguments
- phy
The matched phylogenetic tree.
- events
The data frame returned by
age_correct_events, which must includenode_age,island_age, andpredates_islandcolumns.- island_ages
A named numeric vector of island formation ages, in the same units as branch lengths.