[R] Help with GAM (mgcv)

Simon Wood s.wood at bath.ac.uk
Mon Dec 6 12:37:35 CET 2010

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


> Simon Wood, Mathematical Sciences, University of Bath, Bath, BA2 7AY UK
> +44 1225 386603  www.maths.bath.ac.uk/~sw283

More information about the R-help mailing list