waitakere
data frame has 579 rows and 18 columns.
Altitude is explanatory, and there are binary responses
(presence/absence = 1/0 respectively) for 17 plant species.data(waitakere)
hunua
.fit <- vgam(agaaus ~ s(altitude, df = 2), binomialff, waitakere)
head(predict(fit, waitakere, type = "response"))
plot(fit, se = TRUE, lcol = "orange", scol = "blue")
Run the code above in your browser using DataLab