make_data_NHPP_KDE_Markov_kernel {ontophylo} | R Documentation |
Get NHPP data for all edges (Markov KDE)
Description
Gets data on changing times between states for all edges of a given sample of trees for the Markov kernel density estimator (KDE).
Usage
make_data_NHPP_KDE_Markov_kernel(Tb.trees, add.psd = TRUE)
Arguments
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. |
Value
A list with changing times between states for all edges of a given sample of trees.
Author(s)
Sergei Tarasov
Examples
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]]
[Package ontophylo version 1.1.3 Index]