Description Usage Arguments Value Examples
View source: R/tess.likelihood.bdstp.R
Computation of the likelihood for a given tree under an episodic fossilized-birth-death model (i.e. piecewise constant rates).
1 2 3 4 5 6 7 8 9 10 11 12 | tess.likelihood.bdstp(
nodes,
lambda,
mu,
phi,
r,
samplingProbability,
samplingStrategy = "uniform",
MRCA = TRUE,
CONDITION = "survival",
log = TRUE
)
|
nodes |
node information from |
lambda |
speciation rate vector |
mu |
extinction rate vector |
phi |
serial sampling rate vector |
r |
conditional probability that a lineage dies upon (serial) sampling |
samplingProbability |
probability of uniform sampling at present |
samplingStrategy |
Which strategy was used to obtain the samples (taxa). Options are: uniform|diversified|age |
MRCA |
does the tree start at the mrca? |
CONDITION |
do we condition the process on nothing|survival|sampleAtLeastOneLineage? |
log |
likelhood in log-scale? |
log likelihood
1 2 3 4 5 6 7 8 9 | data(conifers)
nodes <- tess.branching.times(conifers)
logL <- tess.likelihood.bdstp(nodes,
lambda = 1.0,
mu = 0.5,
phi = 0.1,
r = 0.0,
samplingProbability = 1.0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.