Skip to content
Prev 244005 / 398506 Next

Help with GAM (mgcv)

Please help! Im trying to run a GAM:

model3=gam(data2$Symptoms~as.factor(data2$txerad)+s(data2$maritalStatus),family=binomial,data=data2)

But keep getting this error: 
Error in dl[[i]] : subscript out of bounds

Can someone please tell me what this error is?

Thanks