Last chance! 50% off unlimited learning
Sale ends in
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
.data(waitakere)
fit = vgam(agaaus ~ s(altitude), binomialff, waitakere)
plot(fit, se=TRUE, lcol="red", scol="blue")
predict(fit, waitakere, type="response")[1:3]
Run the code above in your browser using DataLab