In the 'isolation.txt'data set,the response variable is called incidence;a value of1means that an island was occupied by a particular species of bird,and0means that the bird did not breed there.The explanatory variables are the area of the island(km2)and the isolation of the island(distance from the mainland,km). Apply ageneralisedadditive model (GAM) with appropriate error distribution. Specify a smoothing function (s(...)) for each of the two continuous explanatory variables. Check whether both smoothing functions are warranted and simplify your model if required. Plot the data as is (i.e. simply as 0s and 1s) and add your model fit incl. 95%confidenceintervals. Finally, compare the GAM results to those of a GLM (with the same error distribution).
Note that you need to use the read.table() function with the argument header = T, to read in the data.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here