make_data_NHPP_KDE_Markov_kernel {ontophylo} | R Documentation |
Gets data on changing times between states for all edges of a given sample of trees for the Markov kernel density estimator (KDE).
make_data_NHPP_KDE_Markov_kernel(Tb.trees, add.psd = TRUE)
Tb.trees |
data.frame. A tibble obtained with the 'path_hamming_over_trees_KDE' function. |
add.psd |
logical. Whether to add pseudodata or not. Default is TRUE. |
A list with changing times between states for all edges of a given sample of trees.
Sergei Tarasov
data("hym_hm")
# Get hamming data from the head characters.
hm <- hym_hm$head
# Make NHPP path data.
nhpp <- make_data_NHPP_KDE_Markov_kernel(hm)
# Check NHPP path data for an arbitrary branch.
nhpp[[5]]