Learn R Programming

MDM (version 1.3)

spider6: The spider data set

Description

Data set on abundances of spiders and environmental predictors. This is a subset of a larger data comprising 12 species and 6 environmental predictors. All variables are rated on a 0-9 scale.

Usage

data(spider6)

Arguments

Format

A data frame with 28 observations on the following 9 variables.
Pard.lugu
a numeric vector
Pard.pull
a numeric vector
Troc.terr
a numeric vector
Pard.mont
a numeric vector
Alop.acce
a numeric vector
Alop.fabr
a numeric vector
Water
a numeric vector
Herbs
a numeric vector
Site
a factor with 28 levels

Source

package mvpart

References

De'ath G. (2002) Multivariate regression trees: A new technique for modeling species-environment relationships. Ecology, 2002, 83:1105--1117.

Examples

Run this code
data(spider6)
summary(spider6)
fit0 <- mdm(y2p(spider6[,1:6])~1,data=spider6)
fit1 <- mdm(y2p(spider6[,1:6])~Water+Herbs,data=spider6)
fit2 <- mdm(y2p(spider6[,1:6])~Site,data=spider6,alpha=TRUE)
anova(fit0,fit1,fit2)

Run the code above in your browser using DataLab