Learn R Programming

hcc (version 0.54)

gala: Species diversity on the Galapagos Islands

Description

There are 30 Galapagos islands and 7 variables in the dataset. The relationship between the number of plant species and several geographic variables is of interest. The original dataset contained several missing values which have been filled for convenience.

Usage

data(gala)

Arguments

Format

A data frame with 30 observations on the following 7 variables.
Species
the number of plant species found on the island
Endemics
the number of endemic species
Area
the area of the island (km^2)
Elevation
the highest elevation of the island (m)
Nearest
the distance from the nearest island (km)
Scruz
the distance from Santa Cruz island (km)
Adjacent
the area of the adjacent island (square km)

Source

M. P. Johnson and P. H. Raven (1973) "Species number and endemism: The Galapagos Archipelago revisited" Science, 179, 893-895

References

J. J. Faraway. Linear Models with R. Chapman & Hall/CRC, 2005 and J. J.Faraway. Extending the linear model with R. Chapman & Hall/CRC Taylor & Francis Group, 2006.

Examples

Run this code
data(gala)
gala <- gala[,-2]
modt <- lm(sqrt(Species) ~ . , gala)
res <- resid(modt)
hctest(gala[,3], residuals(modt))

Run the code above in your browser using DataLab