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
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
2 matches
Mail list logo