Re: [R-sig-eco] GAM - Cyclic splines

2015-01-22 Thread Gavin Simpson
To the best of my knowledge this works as per mgcv::gam and mgcv::gamm (as the only code in **gamm4** is that to fit the GAMM via **lme4** and nothing else, so leveraging existing code in **mgcv**). Whilst it would help to give more informative names than X1 and X2, and so on to your variables, I

[R-sig-eco] GAM - Cyclic splines

2015-01-22 Thread SamiC
Hi, I am trying to use cyclic splines in gamm4 to model year day. I have data running from say day 6 to day 300 but I want to specify the outer limits of the data are at 0 and 366. I dont want to fix the inner position of the knots however (I allow for a total of 5 knots). Is there a way to do