ranef2long: Convert ranef() output to long format

View source: R/ranef.r

ranef2longR Documentation

Convert ranef() output to long format

Description

Convert ranef() output to long format

Usage

ranef2long(x, idvar)

.re.data(d, i, idvar)

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

Value

A data.table object with the random effects in long format.


multilevelTools documentation built on April 13, 2025, 9:08 a.m.