[R] gam error

natalieh fbsnch at leeds.ac.uk
Thu Jun 3 13:24:39 CEST 2010


Hi all,

I'm trying to use a gam (mgcv package) to analyse some data with a roughly U
shaped curve. My model is very simple with just one explanatory variable:

m1<-gam(CoT~s(incline))

However I just keep getting the error message

"Error in smooth.construct.tp.smooth.spec(object, dk$data, dk$knots) : 
  A term has fewer unique covariate combinations than specified maximum
degrees of freedom"

Just wondering if anyone had come across this before/ could offer any advice
on where the problem might lie

Many thanks,

Natalie



-- 
View this message in context: http://r.789695.n4.nabble.com/gam-error-tp2241518p2241518.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list