ranef2long: Convert ranef() output to long format
Description
Convert ranef() output to long format
Usage
ranef2long(x, idvar).re.data(d, i, idvar)
Value
A data.table object with the random effects in long format.
Arguments
- x
A brmsfit
object
- idvar
A character string specifying the grouping variable name for the
random effects.
- d
A ranef
object
- i
an integer, which random effect to pull out