On Monday 06 December 2010 09:33, Stressed1985 wrote: > Please help! Im trying to run a GAM: > > model3=gam(data2$Symptoms~as.factor(data2$txerad)+s(data2$maritalStatus),fa >mily=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? - it's a bit difficult on the basis of the information you've supplied... - What version of mgcv are you using and with what R version on what platform? - What does summary(data2) give?
best, Simon -- > Simon Wood, Mathematical Sciences, University of Bath, Bath, BA2 7AY UK > +44 1225 386603 www.maths.bath.ac.uk/~sw283 ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.