Re: [R] mgcv with discrete covariates, interaction term

2009-12-22 Thread Gavin Simpson
On Mon, 2009-12-21 at 13:20 -0500, John Tillinghast wrote: I'm trying to build a model with an overall smooth function for all the data, plus an additional smooth function for *some* of the data. If ind is my indicator variable (0 for some x, 1 for others), I imagined I could write it like

[R] mgcv with discrete covariates, interaction term

2009-12-21 Thread John Tillinghast
I'm trying to build a model with an overall smooth function for all the data, plus an additional smooth function for *some* of the data. If ind is my indicator variable (0 for some x, 1 for others), I imagined I could write it like this: gam.obj - gam(y ~ s(x) + ind*s(x)) but this does not