powered by
Sets up a random effect for the levels of x. Use the by-argument to request random slopes.
x
by
re(x, ...)
a grouping variable: must be a factor
factor
further arguments handed over to s, see random.effects
s
random.effects
See random.effects in mgcv.