lme4 (version 1.1-5)

mkReTrms: Create Z, Lambda, Lind, etc.

Description

From the result of findbars applied to a model formula and and the evaluation frame, create the model matrix, etc. associated with random-effects terms. See the description of the returned value for a detailed list.

Usage

mkReTrms(bars, fr)

Arguments

bars
a list of parsed random-effects terms
fr
a model frame in which to evaluate these terms

Value

  • a list with components
  • Zttranspose of the sparse model matrix for the random effects
  • Lambdattranspose of the sparse relative covariance factor
  • Lindan integer vector of indices determining the mapping of the elements of the theta to the "x" slot of Lambdat
  • thetainitial values of the covariance parameters
  • lowerlower bounds on the covariance parameters
  • flistlist of grouping factors used in the random-effects terms
  • cnmsa list of column names of the random effects according to the grouping factors

See Also

Other utilities: findbars, mkRespMod, nlformula, nobars, subbars