Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

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...

1 answer below »
  • 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.

Answered Same Day May 03, 2021

Solution

Pooja answered on May 12 2021
135 Votes
x<-1
li
ary(readxl)
data1<-read_excel(path="C:/Users/HP/Desktop/Book2.xlsx")
li
ary(mgcv)
<- gam(incidence~s(area)+s(isolation),data=data1)
summary(b)
plot(b,pages=1,residuals=TRUE)
plot(b,pages=1,seWithMean=TRUE)
fit <-...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here