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 list with components call (a rewritten call to
call
s with bs = "re") and data (a named list containing the grouping factor).
s
bs = "re"
data
a grouping variable: must be a factor
factor
further arguments handed over to s, see random.effects
random.effects
See random.effects in mgcv.