View source: R/simulatePhylogenies.R
simulatePhyloCRBD | R Documentation |
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.
simulatePhyloCRBD( n.phylo, tips.lim, lambda.lim, sumstat_check = T, verbose = F )
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) |
list
$phylo
: list of simulated phylogenies (ape format)
$params
: dataframe of phylogeny parameters
$sumstat
: dataframe of phylogeny summary statistics
(empty if ss_check = FALSE
)
simulatePhyloBiSSE
simulatePhyloCRBD(10, c(50, 100), c(0.1, 1.)) # simulate 10 phylo
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.