Re: [R] Interaction effects with GAMM

2019-02-19 Thread Bert Gunter
Wrong list. This list is about R programming, not statistical questions on mixed models. Post on the r-sig-mixed-models list for that. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom Coun

[R] Interaction effects with GAMM

2019-02-19 Thread Louise Baruël Johansen
I have a question on how to model interaction terms including smooths in a GAMM model (using the mgcv and nlme packages in R). We have collected longitudinal behavioral and brain imaging data from ~100 subjects across ~6 time points, and I would like to model main effects of age, sex, brain as