nltt_diff_exact_brts: Calculates the exact difference between the nLTT curves of...

View source: R/nLTTDiff.R

nltt_diff_exact_brtsR Documentation

Calculates the exact difference between the nLTT curves of the branching times

Description

Calculates the exact difference between the nLTT curves of the branching times

Usage

nltt_diff_exact_brts(
  b_times,
  lineages,
  b_times2,
  lineages2,
  distance_method = "abs",
  time_unit = "since"
)

Arguments

b_times

branching times of the first phylogeny,

lineages

the number of lineages, usually one to the number of lineages

b_times2

branching times of the first phylogeny

lineages2

the number of lineages, usually one to the number of lineages

distance_method

how the difference between the two nLTTs is summed

  • "abs: "the absolute distance between the two nLTTs is summed

  • "squ: "the squared distance between the two nLTTs is summed

time_unit

the time unit of the branching times

  • "ago: "the branching times are postive, as these are in time units ago

  • "since: "the branching times are negative, as these are in time units since present

Author(s)

Thijs Janzen and Richèl Bilderbeek


nLTT documentation built on Aug. 21, 2023, 5:13 p.m.