calc_ranef: Calculate random effects based on a subset of variance terms

Description Usage Arguments Details Value See Also

View source: R/calc_ranef.R

Description

This function calculates random effects of a mixed model based on a subset of the variance terms.

Usage

1
calc_ranef(model, ran)

Arguments

model

a model object.

ran

a named list of integer vectors representing the random effects that should be calculated.

Details

The names of the list ran correspond to the names of the list returned by ranef_labels(model).

The integer values within each vector correpsond to the position of the name of the random effect.

If ran is NULL, the function will return a vector of zeroes.

Value

a numeric vector.

See Also

ranef for extracting the modes of the random effects.


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