Dear Simon, I have the same problem. I understand te(a), te(b) are nested in te(a,b) according to your paper on tensor product. I have no enough data to perform te(a,b,d) and only care the interactions a*b and a*d, so I did y=te(a,b)+te(a,d). The resutl is good. I am wondering if this is the correct way to do in mgcv? How does mgcv handle the a in both /te/ terms?
Thanks. Best regards, Chuan Yan -- View this message in context: http://r.789695.n4.nabble.com/gam-in-mgcv-with-multiple-interactions-tp3580036p4252197.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.