simulatePhyloCRBD: Simulate phylogenies under the CRBD model

View source: R/simulatePhylogenies.R

simulatePhyloCRBDR Documentation

Simulate phylogenies under the CRBD model

Description

Generate a list of phylogenies under the Constant Rate Birth Death (CRBD) model. Can check and save summary statistics of each phylogeny by activating sumstat_check. Moreover true parameters of each phylogeny are also returned.

Usage

simulatePhyloCRBD(
  n.phylo,
  tips.lim,
  lambda.lim,
  sumstat_check = T,
  verbose = F
)

Arguments

n.phylo

number of phylogenies to simulate

tips.lim

phylogeny size range

lambda.lim

speciation rate range

sumstat_check

whether to check that summary statistics can be computed for each phylogeny and save them (logical)

verbose

whether to print progress (logical)

Value

list

  • $phylo: list of simulated phylogenies (ape format)

  • $params: dataframe of phylogeny parameters

  • $sumstat: dataframe of phylogeny summary statistics (empty if ss_check = FALSE)

See Also

simulatePhyloBiSSE

Examples

simulatePhyloCRBD(10, c(50, 100), c(0.1, 1.)) # simulate 10 phylo


ilajaait/deephylo documentation built on April 10, 2022, 11:03 a.m.