Description Usage Arguments Details Value
Create all of the elements required to specify the random-effects structure of a mixed effects model.
1 | mkRanefRepresentation(grps, mms)
|
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. |
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.
A list with:
Lambdat
Transformed relative covariance factor
Zt
Transformed random effects model matrix
theta
Vector of covariance parameters
lower Vector
of lower bounds on the covariance parameters
upper Vector of upper bounds on the covariance
parameters
thfun A function that maps
theta onto the non-zero elements of Lambdat
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.