Ispline {zetadiv}R Documentation

Transform data using I-splines

Description

Evaluates the I-splines for all variables of a data frame, as performed in Zeta.msgdm.

Usage

Ispline(dat, order.ispline = 2, kn.ispline = 1, rescale = 0)

Arguments

dat

A data frame whose columns are variables to be transformed using I-splines.

order.ispline

Order of the I-spline.

kn.ispline

Number of knots in the I-spline.

rescale

Indicates how to rescale the values between 0 and 1. Default is 0, which divides the data by the maximum value. Any other value corresponds to setting the minimum value to 0.

Value

Ispline returns a data frame with the same number of rows as dat and

ncol(dat) * (order.ispline + kn.ispline) columns.

References

Ramsay, J. O. (1988). Monotone regression splines in action. Statistical Science, 425-441.

Ferrier, S., Manion, G., Elith, J., & Richardson, K. (2007). Using generalized dissimilarity modelling to analyse and predict patterns of beta diversity in regional biodiversity assessment. Diversity and Distributions, 13(3), 252-264.

See Also

Zeta.msgdm

Examples

utils::data(bird.env.coarse)
data.env <- bird.env.coarse[,3:9]
data.env.splines <- Ispline(data.env)

[Package zetadiv version 1.2.1 Index]