modified_sfbdrt: modified_sfbdrt: Modified the sfbdrt(sim.fbd.rateshift.taxa)...

Description Usage Arguments Value

Description

sim.fbd.rateshift.taxa function from the FossilSim Package, but it returns a list of the fossil along with the SAtree object. It also adds an (h) column to the fossil dataframe so that the fossil count functions (summary statistic) will work.

Usage

1
modified_sfbdrt(n, numbsim, lambda, mu, psi, times, complete = FALSE)

Arguments

n

Number of extant taxa

numbsim

Number of trees to simulate

lambda

Speciation rate

mu

Extinction rate

psi

Fossil sampling rate. Input as a vector.

times

Vector of time intervals.

complete

Defaults to FALSE. If TRUE, the tree including the extint lineages and non-sampled lineages is returned.

Value

list(f,trees). Returns fossil object, f, and simulated SAtrees with n extant sampled tips


jaishimuku/WrightLab_FBD documentation built on July 17, 2020, 12:05 a.m.