Skip to content
Prev 17643 / 20628 Next

Collinearity tests (e.g. VIF) for glmmTMB package

Hi Daniel,

In the development version of GLMMadaptive 
(https://github.com/drizopoulos/GLMMadaptive) that can fit similar 
models as glmmTMB, I have put a VIF() method (based on car::vif) that 
can calculate VIFs also for zero-inflated models. E.g.,

library("GLMMadaptive")
fm <- mixed_model(y ~ time + sex, random = ~ 1 | id, data = <your_data>, 
family = zi.negative.binomial(), zi_fixed = ~ sex, zi_random = ~ 1 | id)

VIF(fm) # for the fixed effects of the non-zero part
VIF(fm, type = "zi_fixed") # fixed effects zero part


Best,
Dimitris
On 5/14/2019 12:25 PM, Daniel L?decke wrote: