estimate_spext: Esimate speciation and extinction

Description Usage Arguments Value Note Author(s)

View source: R/estimate_spext.R

Description

This function fits Nee's likelihood function to one or more trees and returns the estimated speciation and extinction rates by maximum likelihood, as well as the average age of all trees. If several trees are input, the average of those is returned.

Usage

1
estimate_spext(treepath)

Arguments

treepath

A path to where the tree file is. The tree file should be named "Tress.txt" and be in Newick format. It may contain several trees.

Value

A vector with a speciation and an extinction rate.

Note

ape is a dependency.

Author(s)

Raphael Scherrer


rscherrer/bop documentation built on May 22, 2019, 3:54 p.m.