R: Create X and random effect terms from formula

getXReTrms {glmmTMB} | R Documentation

## Create X and random effect terms from formula

### Description

Create X and random effect terms from formula

### Usage

    getXReTrms(formula, mf, fr, ranOK = TRUE, type = "")

### Arguments

`formula` | current formula, containing both fixed & random effects
`mf` | matched call
`fr` | full model frame
`ranOK` | random effects allowed here?
`type` | label for model type

### Value

a list composed of

`X` | design matrix for fixed effects
`Z` | design matrix for random effects
`reTrms` | output from `mkReTrms` from lme4
`offset` | offset vector, or vector of zeros if offset not specified

[Package glmmTMB version 0.2.2.0 Index]