nltts_diff: Calculates the nLTT statistic between each phylogeny in a...

View source: R/nLTTDiff.R

nltts_diffR Documentation

Calculates the nLTT statistic between each phylogeny in a collection compared to a same focal/reference tree

Description

Calculates the nLTT statistic between each phylogeny in a collection compared to a same focal/reference tree

Usage

nltts_diff(
  tree,
  trees,
  distance_method = "abs",
  ignore_stem = TRUE,
  log_transform = FALSE
)

Arguments

tree

One phylogenetic tree

trees

A collection of one or more phylogenetic trees

distance_method

(string) absolute, or squared distance?

ignore_stem

(logical) Should the phylogeny its stem be ignored?

log_transform

(logical) Should the number of lineages be log-transformed before normalization?

Value

the nLTT statistic values, as a numeric vector of the same length as trees

Author(s)

Richèl J.C. Bilderbeek

See Also

use nltt_diff to compare two phylogenies

Examples

  tree <- ape::rcoal(4)
  trees <- c(ape::rcoal(4), ape::rcoal(4))
  nltts <- nltts_diff(tree, trees)

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