VGAM (version 0.8-3)

hunua: Hunua Ranges Data

Description

The hunua data frame has 392 rows and 18 columns. Altitude is explanatory, and there are binary responses (presence/absence = 1/0 respectively) for 17 plant species.

Usage

data(hunua)

Arguments

source

Dr Neil Mitchell, University of Auckland.

Details

These were collected from the Hunua Ranges, a small forest in southern Auckland, New Zealand. At 392 sites in the forest, the presence/absence of 17 plant species was recorded, as well as the altitude. Each site was of area size 200$m^2$.

See Also

waitakere.

Examples

Run this code
# Fit a GAM using vgam() and compare it with the Waitakere Ranges one
fit.h = vgam(agaaus ~ s(altitude, df=2), binomialff, hunua)
plot(fit.h, se=TRUE, lcol="red", scol="red",
     main="Red is Hunua, Blue is Waitakere")
head(predict(fit.h, hunua, type="response"))

fit.w = vgam(agaaus ~ s(altitude, df=2), binomialff, waitakere)
plot(fit.w, se=TRUE, lcol="blue", scol="blue", add=TRUE)
head(predict(fit.w, hunua, type="response"))   # Same as above?

Run the code above in your browser using DataLab