pbd_sim(
pars,
age,
soc = 2,
plotit = FALSE
)pars[1] corresponds to b_1, the speciation-initiation rate of good species
pars[2] corresponds to la_1, the speciation-completion rate
pars[3] corresponds to b_2, the speciation-initiation rtree is the tree of extant species in phylo format
stree is a tree with one sample per species in phylo format
L is a matrix of all events in the simulation where
- the first column is the incipient-level label of a species
- the second column is the incipient-level label of the parent of the species
- the third column is the time at which a species is born as incipient species
- the fourth column is the time of speciation-completion of the species
If the fourth element equals -1, then the species is still incipient.
- the fifth column is the time of extinction of the species
If the fifth element equals -1, then the species is still extant.
- The sixth column is the species-level label of the species
sL is a matrix like L but for stree
igtree.extinct is the tree in simmap format with incipient and good flags and including extinct species
igtree.extant is the tree in simmap format with incipient and good flags without extinct species
recontree is the reconstructed tree in phylo format, reconstructed using the approximation in Lambert et al. 2014
reconL is the matrix corresponding to recontree
L0 is a matrix where the crown age is at 0; for internal use onlypbd_sim_cpppbd_sim(c(0.2,1,0.2,0.1,0.1),15)Run the code above in your browser using DataLab