View source: R/wrapper_glmer.R
| make_glmer_Z_matrix | R Documentation |
Converts the transposed block random-effect design matrix used internally by 'rtmb_glmer()' into an observation-level matrix. This is kept as a small utility for users who want to work from the block matrix returned by 'make_glmer_re_terms()'.
make_glmer_Z_matrix(Zt, group_idx, N = length(group_idx))
Zt |
Transposed block random-effect design matrix. |
group_idx |
Integer group index for each observation. |
N |
Number of observations. Defaults to 'length(group_idx)'. |
A matrix with 'N' rows and one column per random-effect coefficient.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.