model_overdisp: Adds an observational level random effect to a model, if applicable.
Description
Adds an observational level random effect to a model, if applicable.
Usage
model_overdisp(mod, dat, olre)
Value
list with three elements: merMod object with added OLRE,
data.frame with added OLRE variable, and name of OLRE.
Arguments
- mod
merMod object.
- dat
The underlying data.frame