phyloSignalINT: Computes phylogenetic signal at each internal node of a...

View source: R/phyloSignalExtra.R

phyloSignalINTR Documentation

Computes phylogenetic signal at each internal node of a phylogeny

Description

This function computes phylogenetic signal statistics and p-values for a given trait and a given method at each internal node of a phylogenetic tree.

Usage

phyloSignalINT(
  p4d,
  trait = names(tipData(p4d))[1],
  method = "Cmean",
  reps = 999,
  W = NULL
)

Arguments

p4d

a phylo4d object.

trait

a character string giving the trait to use to compute the signal. By default the first trait is taken from p4d.

method

a character vector giving the method to use to compute phylogenetic signal (default is "Cmean"; see phyloSignal).

reps

an integer. The number of repetitions for the estimation of p.values with randomization.

W

an optional matrix of phylogenetic weights to compute Moran's I. By default the matrix is computed with the function proxTips with patristic distances.

Value

A phylo4d object with phylogenetic signal statistics and p-values as nodes associated data.


phylosignal documentation built on Oct. 12, 2023, 5:13 p.m.