Learn R Programming

JointAI (version 1.0.6)

get_nranef: Extract the number of random effects

Description

Extract the number of random effects

Usage

get_nranef(idvar, random, data)

Value

a list by grouping level (idvar) with a named vector of the number of random effects per variable (=names).

Arguments

idvar

vector of the names of all id variables

random

a random effect formula or list of random effects formulas

data

a data.frame