m <- glmmTMB(count ~ mined + (1 | spp), data = Salamanders, family = nbinom1)
# Standard variance-covariance matrix:
vcov(m)$cond
# Cluster-robust variance-covariance matrix:
vcovHC(m)
# Include the variance parameters:
vcovHC(m, full = TRUE)
# This can be compared with:
vcov(m, full = TRUE)
# Only look at the meat part:
vcovHC(m, sandwich = FALSE)
Run the code above in your browser using DataLab