sim.gsa.taxa(TreeSim)
sim.gsa.taxa()所属R语言包:TreeSim
译者:生物统计家园网 机器人LoveR
描述----------Description----------
sim.gsa.taxa samples trees on n tips appropriately (using the GSA approach, see references) from bigger trees simulated under the simple sampling approach (i.e. simulating until first m>>n tips are reached or the tree is extinct). This methods works for m-tip trees generated under a model where: (i) the number of tips eventually tends to zero or stays bigger than n and (ii) rate changes do not depend on the time between the change and the present - e.g. one cannot model a mass extinction event 1 million years BEFORE the present. But one can model a mass extinction event 1 million years AFTER the origin of the tree.
sim.gsa.taxa样品的树木适当的n提示(使用GSA的方法,请参阅参考资料)从更大的树木模拟简单的抽样方法(即模拟,直到第一个M >> N的技巧达到或树是灭绝)。此方法适用于下产生的一个模型,其中:(i)本提示最终趋于零或保持较大的比n及(ii)利率变动不依赖于时间之间的变化和本 - 例如M-尖树不能模拟大规模灭绝事件之前,目前百万年。但有树的起源后百万年,可以模拟生物大灭绝事件。
Note that the number of trees in the output is significantly smaller than the number of trees in the input (in order to have correct sampling).
请注意,在输出中的树木的数量是显着小于输入中的树木(为了有正确的采样)的数目。
用法----------Usage----------
sim.gsa.taxa(treearray, n, frac = 1, sampling = 1, complete = TRUE)
参数----------Arguments----------
参数:treearray
Array of trees with a fixed number of leaves
阵列的树木叶片固定数目的
参数:n
Number of tips in sampled trees
采样的树木的提示
参数:frac
Relevant when complete = FALSE: The actual number of tips is n/frac, but only n tips are included (incomplete sampling). When complete = TRUE: We set frac = 1.
相关完成时= FALSE的秘诀是n /压裂的实际数量,但只有n个技巧(不完全抽样)。当完成时= TRUE:我们设置压裂= 1。
参数:sampling
Default is 40, the higher the closer the returned trees in treearray are to the "true" distribution, but the more trees are required in treearray to reach a big sample of output trees.
默认值是40,越高越接近返回的树木在treearray是“真实”的分布,但需要更多的树木在treearray到达了大样本的输出树。
参数:complete
If TRUE, the tree with the extinct lineages is returned. If FALSE, the extinct lineages are suppressed.
如果是TRUE,则返回灭绝的谱系树。如果为FALSE,已经灭绝的血统被抑制。
值----------Value----------
参数:treearray
Array of sampled trees with n extant sampled leaves
阵列的采样树有n个现存的采样叶
(作者)----------Author(s)----------
Tanja Stadler
参考文献----------References----------
<h3>See Also</h3> sim.bd.age, sim.bd.taxa, sim.rateshift.taxa, birthdeath.tree
实例----------Examples----------
##[#]
# First 100 trees on 9 leaves under a birth-death process are generated.[前100棵9叶下生灭过程的产生。]
# Then trees on 5 species are sampled from these 100 trees using the GSA[5种上的树木进行采样,然后使用GSA这100棵树]
# (see references). [(请参阅参考资料)。]
# You can easily simulate trees on m species with the simple sampling[您可以很容易地模拟树在m种简单的采样]
# approach (see references) under a variety of models. Then use the[方法(请参阅参考资料)下的多种型号。然后使用]
# provided GSA algorithm to get a correct sample of trees on n<<m species:[GSA算法来得到正确的样品N << M种的树木:]
m<-9
n<-5
numbsim<-100
lambda <- 2.0
mu <- 0.5
t<-sim.bd.taxa(m,numbsim,lambda,mu)
t2<-sim.gsa.taxa(t[[1]],n)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|