Open heathwinning-sunshot opened 3 years ago
Is it possible to replicate the functionality of the by keyword of the mgcv smooth term? I am particularly interested in using by with a factor variable, as in the example
by
gam(y ~ fac+s(x2,by=fac)+s(x0),data=dat)
taken from mgcv examples
Is it possible to replicate the functionality of the
by
keyword of the mgcv smooth term? I am particularly interested in usingby
with a factor variable, as in the exampletaken from mgcv examples