Step 4: Triggering a speciation or extinction event for the selected lineage. For example here, the lineage A speciates into two new ones: D and E. This can be controlled through the modifiers object (with speciation).
runif(1) < speciation/(speciation + extinction)
or in the treats algorithm:runif(1) < (bd.params$speciation/(bd.params$speciation + bd.params$extinction))