mkRanefRepresentation: Make random effects representation

Description Usage Arguments Details Value

View source: R/pls.R

Description

Create all of the elements required to specify the random-effects structure of a mixed effects model.

Usage

1

Arguments

grps

List of factor vectors of length n indicating groups. Each element corresponds to a random effects term.

mms

List of model matrices. Each element corresponds to a random effects term.

Details

The basic idea of this function is to call Zsection and blockLambdat once for each random effects term (ie. each list element in grps and mms). The results of Zsection for each term are rBinded together. The results of blockLambdat are bdiaged together, unless all terms have only a single column ('predictor') in which case a diagonal matrix is created directly.

Value

A list with:


lme4/lme4pureR documentation built on May 21, 2019, 7:34 a.m.