network.gsa | R Documentation |
Takes a phylogeny and samples a period where n lineages exist. This method properly samples n taxa under the GSA
network.gsa(net, ntaxa, complete = TRUE, frac = 1, stochsampling = FALSE)
net |
A network to sample phylogenies. |
ntaxa |
The number of desired taxa. |
complete |
If complete = TRUE, the tree with the extinct lineages is returned. If complete = FALSE, the extinct lineages are suppressed. |
frac |
Sampling fraction: The proportion of extant tips included in the phylogeny (incomplete sampling). |
stochsampling |
When |
A network with n extant taxa
set.seed(10)
ssa_net <-sim.bdh.taxa.ssa(n=20,numbsim=1,
lambda=1,mu=0.2,
nu=0.25, hybprops = c(1/3,1/3,1/3),
hyb.inher.fxn = make.beta.draw(1,1),
)[[1]]
gsa_net<-network.gsa(ssa_net,5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.