Skip to content
Prev 327327 / 398502 Next

Help with using unpenalised te smooth in negative binomial mgcv gam

Hi Alice,

This is a bug in gam.side, which was assuming that any interaction 
smooth that needed identifiability constraints would be penalized. 
thanks for reporting it - fixed for next version.

In the meantime have you considered using `ti' terms instead of `te'? 
These provide a more satisfactory way of building
models with main effects and interactions. A ti smooth is basically 
built as an interaction with the main effects completely removed, and 
therefore does not require the imposition of further side conditions to 
enforce identifiability  (using `ti' would mean including the main 
effect of x3 in your model).

best,
Simon
On 23/07/13 16:02, alice.jones wrote: