FPDglm: Functional phylogenetic diversity generalised linear model

Description Usage Arguments Value

View source: R/funphylocom.R

Description

Calculate a generalised linear model using functional-phylogenetic diversity indices as predictors, given a value for the phylogenetic weighting parameter, a.

Usage

1
2
FPDglm(tab, y, PDist, FDist, a, p = 2, index = "mpd",
  abundance.weighted = 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 number between 0 and 1 giving the amount of weight to put on PDist relative to FDist.

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.

...

Additional arguments to pass to glm.

Value

A glm object.


funphylocom documentation built on May 31, 2017, 2:50 a.m.