Description Usage Arguments Value

View source: R/create_model_matrices.R

Creates an incidence matrix for the random effects of a mixed-model

1 | ```
ranef_model_matrix(random, data, vcov, sparse = TRUE)
``` |

`random` |
A |

`data` |
A |

`vcov` |
A named list of variance-covariance matrices that correspond to
the random effect terms that are specified with the |

A nested list of model matrices and variance-covariance matrices. For each
random effect term, the incidence matrix `Z`

is returned along with its
accompanying variance-covariance matrix `K`

.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.