| sandwich | R Documentation |
This (simplified) method for a new S3 generic based on sandwich
computes the sandwich estimator for a fitted glmmTMB model.
sandwich(x, ...)
## Default S3 method:
sandwich(x, ...)
## S3 method for class 'glmmTMB'
sandwich(x, full = FALSE, cluster = getGroups(x), rawnames = FALSE, ...)
x |
a |
... |
ignored by the |
full |
logical; if |
cluster |
a factor indicating the cluster structure of the data. |
rawnames |
logical; if |
A square matrix representing the sandwich estimator.
m <- glmmTMB(count ~ mined + (1 | site), data = Salamanders, family = nbinom1)
sandwich(m)
sandwich(m, full = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.