If you want to include random intercepts in a model fit by bam/gam, then
include
s(g,bs="re")
in the model formula, where g is a factor variable with one level for
each group requiring a random intercept.
Now suppose that for each level of group g you want a random slope
w.r.t. x. You should
Hello R users,
I have a quick question I was hoping to get your input on. I am new to R
and the smooth statistical regression world, and am trying to wrap my mind
around the issues concerning using splines for mixed effect modeling.
My question is the following: in the ‘gamm’ function,
2 matches
Mail list logo