
Last chance! 50% off unlimited learning
Sale ends in
probAnc(p, q, R, mode = "budding", analysis = "directDesc", Mmax = 85,
nrep = 10000)
(2*M)
is used in a factorial, which means we are limited to a relatively
small upanalysis
for
details. Mode of differentiation can also be varied
for three different models, see the argument mode
.
This probability is calculated including the probability that extinction might
occur before any descendants are produced. Thus, if p=q, the probability of
a taxon going extinct before it produces any descendants will be 0.5, which
means that even when sampling is perfect (R=1, meaning completeness of
100can be no higher than 0.5. See Foote (1996) for a graphic depiction of this
non-intuitive ceiling. For reasons (probably?) having to do with finite
approximations of infinite summations, values close to perfect sampling
may have values slightly higher than this ceiling, which is also apparent
visually in the figures in Foote (1996).SamplingConv
#examples, run at very low nrep for sake of speed (examples need to be fast)
#default: probability of sampling a direct descendant
probAnc(p = 0.1, q = 0.1, R = 0.5, mode = "budding", analysis="directDesc",nrep=100)
#other modes
probAnc(p = 0.1, q = 0.1, R = 0.5, mode = "bifurcating", analysis="directDesc",nrep=100)
probAnc(p = 0.1, q = 0.1, R = 0.5, mode = "anagenesis", analysis="directDesc",nrep=100)
#probability of having sampled indirect descendants of a taxon
probAnc(p = 0.1, q = 0.1, R = 0.5, mode = "budding", analysis="directDesc",nrep=100) #default
probAnc(p = 0.1, q = 0.1, R = 0.5, mode = "bifurcating", analysis="directDesc",nrep=100)
probAnc(p = 0.1, q = 0.1, R = 0.5, mode = "anagenesis", analysis="directDesc",nrep=100)
Run the code above in your browser using DataLab