ran_as_integer: Random-effect names to indices

Description Usage Arguments Details Value

View source: R/partial.R

Description

Transforms the list of character vectors denoting random effects into a list of corresponding numeric index vectors.

Usage

1
ran_as_integer(ran, model)

Arguments

ran

a named list of numeric index vectors or character vectors (or a mixture of both).

model

a model object.

Details

The function checks the validity of the parameter 'ran' for the use in the partial function. Furthermore, character vectors are transformed to index vectors. These operations are based on the model fit (parameter model).

Value

a named list of numeric index vectors.


hohenstein/remef documentation built on Jan. 26, 2020, 12:57 a.m.