phylo_signal: Estimates phylogenetic signal on spectra

Description Usage Arguments Value

View source: R/phylo_signal.R

Description

Estimates phylogenetic signal on spectra

Usage

1
2
phylo_signal(tree, spec, method = c("lambda", "K"), by_band = TRUE,
  se = NULL)

Arguments

tree

A phylogeny of class "phylo"

spec

A matrix with spectral data, where the first column is are species names that match tip names of the tree.

method

Either "lambda" (Pagel's) or "K" (Bloomberg's).

by_band

Boolean. The default TRUE estimates signal for each wavelength independently. If FALSE, signal is estimated for the spectrum as a whole using method = "lambda" ("K" not availiable if by_band = FALSE).

se

Optional. A matrix of spectral standard erros returned by aggregate_by_species'

Value

A two column data.frame with the estimated signal in the first column and a p-value from a significance test in the second column.


meireles/evolspec documentation built on May 22, 2017, 3:28 a.m.