Perfect. That does exactly as needed. Thanks very much. And yes my days should run from 0 to 365, just a typo.
Regarding predictions, yes I just found an error and one of my variables (X2) was also varying. I thought I had kept them all constant. Sorry about that. -- View this message in context: http://r-sig-ecology.471788.n2.nabble.com/GAM-Cyclic-splines-tp7579269p7579271.html Sent from the r-sig-ecology mailing list archive at Nabble.com. _______________________________________________ R-sig-ecology mailing list R-sig-ecology@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-ecology