Hi Karla, Check out the addTaxa package I wrote a while back ( https://github.com/eliotmiller/addTaxa). I suspect it can do what you want. We hope to publish some formal tests of how this approach performs, but I've been sidetracked. In the meantime if you use it there's the original reference in the literature to it ( https://bsapubs.onlinelibrary.wiley.com/doi/full/10.3732/ajb.1500195). To get it running you would need to install the legacy version of laser from the CRAN repository on GitHub using devtools. That won't always be the case, but I ran out of time to complete the project and it's currently a dependency.
Best wishes, Eliot On Tue, Sep 24, 2019 at 5:42 PM Karla Shikev <karlashi...@gmail.com> wrote: > Dear all, > > Some time ago, Liam Revell kindly provided the code that is now > incorporated into phytools in the add.species.to.genus function, which > randomly adds an additional species to a genus on a phylogeny. However, > this function either adds a species to the root node, or to the branches > after the MRCA of all species in a genus. > > Can anyone envision a way in which it would also be possible to add tips to > the branch between the root and the MRCA of all species in a clade? > Preferably in a way that could be analogous to a model of diversification > (e.g. pure birth)? > > Thanks! > > Karla > > [[alternative HTML version deleted]] > > _______________________________________________ > R-sig-phylo mailing list - R-sig-phylo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-phylo > Searchable archive at > http://www.mail-archive.com/r-sig-phylo@r-project.org/ > [[alternative HTML version deleted]] _______________________________________________ R-sig-phylo mailing list - R-sig-phylo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-phylo Searchable archive at http://www.mail-archive.com/r-sig-phylo@r-project.org/