boot.coefs.decay {betapart}R Documentation

Bootstrapping the parameters of distance-decay models computed with decay.model()

Description

Takes the output of decay.model() and bootstraps the parameters (intercept and slope).

Usage

boot.coefs.decay(x, R)

Arguments

x

the output of decay.model().

R

the number of bootstrap samples.

Value

The function returns a list with:

model.type

functional form of the model, either negative exponential or power law.

y.type

similarties or dissimilarities.

boot.coefs

a matrix with the coefficients bootstrapped distributions, including intercept values in the first column, and slope values in the second column.

original.coefs

model coefficients as estimated with a GLM using decay.model().

mean.boot

the mean of the bootstrapped distributions.

sd.boot

the standard deviation of the bootstrapped distributions.

Author(s)

Andrés Baselga

References

Gómez-Rodríguez, C. & Baselga, A. 2018. Variation among European beetle taxa in patterns of distance decay of similarity suggests a major role of dispersal processes. Ecography, in press

See Also

decay.model

Examples

require(vegan)

data(BCI)
## UTM Coordinates (in metres)
UTM.EW <- rep(seq(625754, 626654, by=100), each=5)
UTM.NS <- rep(seq(1011569,  1011969, by=100), len=50)

spat.dist<-dist(data.frame(UTM.EW, UTM.NS))

dissim.BCI<-beta.pair.abund(BCI)$beta.bray.bal

BCI.decay.pow<-decay.model(dissim.BCI, spat.dist, model.type="pow", perm=100)

boot.coefs.decay(BCI.decay.pow, 50)

[Package betapart version 1.5.4 Index]