Skip to contents

Estimates the speciation rate, extinction rate, and carrying capacity (DDD) of a phylogenetic tree using the EvoNN pre-trained models

Usage

nn_estimate(tree, scenario = "DDD")

Arguments

tree

A phylogenetic tree in phylo format

scenario

The diversification scenario:
"BD" : Birth-death diversification
"DDD" : Diversity-dependent diversification

Value

out

A list with the following elements:
pred_lambda : Speciation rate
pred_mu : Extinction rate
pred_cap : Carrying capacity (Only for DDD)
scale : A factor to scale the tree to the desired age (10)
num_nodes : Number of nodes in the tree

Author

Tianjian Qin