posteriorDensityIncrement | R Documentation |
Compute the posterior density of a set of branch increments under a Cauchy process on a phylogenetic tree.
posteriorDensityIncrement(
node,
vals,
tree,
tipTrait,
root.value = NULL,
disp,
method = c("reml", "random.root", "fixed.root")
)
node |
the node ending the branch for which to compute the posterior density of the increment. |
vals |
the table of values where the density should be computed. |
tree |
a phylogenetic tree of class |
tipTrait |
a names vector of tip trait values, with names matching the tree labels. |
root.value |
the root starting value of the process. |
disp |
the dispersion value. |
method |
the method used to compute the likelihood.
One of |
This function is internally called by increment
, which
is the preferred way of doing ancestral reconstruction on a fitted
object.
the posterior density value.
increment
, fitCauchy
set.seed(1289)
phy <- ape::rphylo(5, 0.1, 0)
dat <- rTraitCauchy(n = 1, phy = phy, model = "cauchy", parameters = list(root.value = 0, disp = 1))
posteriorDensityIncrement(2, 0.1, phy, dat, disp = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.