FPDglm_grid: Calculate Grid search functional phylogenetic diversity...

Description Usage Arguments Value

Description

Calculate deviances over a grid of the phylogenetic weighting parameter, a, for generalised linear models using functional-phylogenetic diversity indices as predictors.

Usage

1
2
FPDglm_grid(tab, y, PDist, FDist, a = seq(0, 1, 0.01), p = 2,
  index = "mpd", abundance.weighted = FALSE, saveGLMs = FALSE, ...)

Arguments

tab

The community by species presence table.

y

An ecosystem function (or other site characteristic being used as a response variable).

PDist

A phylogenetic distance matrix.

FDist

A functional distance matrix.

a

A vector of numbers between 0 and 1 giving the amount of weight to put on PDist relative to FDist. It is best if a is an evenly-spaced grid.

p

A number giving the p-norm.

index

Character string indicating the diversity index used to combine distances and community data. Currently, either 'mpd' or 'rao'.

abundance.weighted

Should mean pairwise distances be weighted by species abundance? (default = FALSE). Only relevant if index = 'mpd' and tab is an abundance matrix.

saveGLMs

Should GLMs for every point along the grid be saved as an attribute, glms?

...

Additional arguments to pass to FPDglm.

Value

TODO.


funphylocom documentation built on May 2, 2019, 5 p.m.